scsi: storvsc: Payload buffer incorrectly sized for 32 bit kernels.
authorCathy Avery <cavery@redhat.com>
Wed, 23 Nov 2016 13:46:33 +0000 (08:46 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 30 Nov 2016 16:38:24 +0000 (11:38 -0500)
commitb0120d9906253570f593daf82016a5331bbee2b8
treec187a06529c211dcd24b1ebdc34941525bbbc303
parent338be07233813d5be8f44d393d6c16f631c3254d
scsi: storvsc: Payload buffer incorrectly sized for 32 bit kernels.

On a 32 bit kernel sizeof(void *) is not 64 bits as hv_mpb_array
requires. Also the buffer needs to be cleared or the upper bytes will
contain junk.

Suggested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Cathy Avery <cavery@redhat.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c