]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: hpsa: fix the device_id in hpsa_update_device_info()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 Aug 2017 14:44:44 +0000 (17:44 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:08 +0000 (22:29 -0400)
commit55e1f9f0881e29cf4974ee551aa36d2bca7ab1d6
treeda893a70d53441130eb8a61aaf9882091bea9f39
parent78453a31d5136cfd8722c111935f6800fa0db0b4
scsi: hpsa: fix the device_id in hpsa_update_device_info()

The parentheses are in the wrong place so we specify the length as
"sizeof(this_device->device_id) < 0" which is zero.

Fixes: 988b87edd231 ("scsi: hpsa: Ignore errors for unsupported LV_DEVICE_ID VPD page")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c