]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/scsi/qla4xxx/ql4_os.c
[SCSI] qla4xxx: fix data alignment and use nl helpers
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 6 Oct 2011 08:56:59 +0000 (03:56 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 20 Oct 2011 15:12:44 +0000 (10:12 -0500)
commit00c31889f7513e9ffa6b2b4de8ad6d7f59a61c80
tree6ba665724a1aed89f962598c323af9be18ce5688
parent88f4f5170fe74ae28443f304fcd226ddcf84f592
[SCSI] qla4xxx: fix data alignment and use nl helpers

This has the driver use helpers for a common operation and fixes
a issue where if multiple iscsi params are sent they could be
sent at offsets that cause unaligned accesses. The nla helpers
account for the padding needed to align properly for the driver.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_os.c
drivers/scsi/scsi_transport_iscsi.c
include/scsi/scsi_transport_iscsi.h