Commit eda05a28 authored by Harish Zunjarrao's avatar Harish Zunjarrao Committed by James Bottomley

[SCSI] fc-transport: Use packed modifier for fc_bsg_request structure.

The 32bit kernel does not add padding bytes in the fc_bsg_request structure
whereas the 64bit kernel adds padding bytes in the fc_bsg_request structure.
Due to this, structure elements gets mismatched with 32bit application and
64bit kernel.To resolve this, used packed modifier to avoid adding padding bytes.
Signed-off-by: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 368bbe07
...@@ -292,7 +292,7 @@ struct fc_bsg_request { ...@@ -292,7 +292,7 @@ struct fc_bsg_request {
struct fc_bsg_rport_els r_els; struct fc_bsg_rport_els r_els;
struct fc_bsg_rport_ct r_ct; struct fc_bsg_rport_ct r_ct;
} rqst_data; } rqst_data;
}; } __attribute__((packed));
/* response (request sense data) structure of the sg_io_v4 */ /* response (request sense data) structure of the sg_io_v4 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment