According to the comments in struct ufs_bsg_reply and its usage, the result should be signed int, not __u32.
Unified · Split
| @@ -95,7 +95,7 @@ struct ufs_bsg_reply { · 94 unmodified lines | |||
| 95 | * msg and status fields. The per-msgcode reply structure | 95 | * msg and status fields. The per-msgcode reply structure |
| 96 | * will contain valid data. | 96 | * will contain valid data. |
| 97 | */ | 97 | */ |
| 98 | __u32 result; | 98 | int result; |
| 99 | 99 | ||
| 100 | /* If there was reply_payload, how much was received? */ | 100 | /* If there was reply_payload, how much was received? */ |
| 101 | __u32 reply_payload_rcv_len; | 101 | __u32 reply_payload_rcv_len; |