scsi: atp870u: 64 bit bug in atp885_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Feb 2018 12:02:31 +0000 (15:02 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Mar 2018 02:10:36 +0000 (21:10 -0500)
commit29e79e0fa9b86535c2f1442d080c8cb5dec8606b
tree4e9850bea6ffa70fce84cd2c21e178515c6336c0
parente75fba9c0668b3767f608ea07485f48d33c270cf
scsi: atp870u: 64 bit bug in atp885_init()

On 64 bit CPUs there is a memory corruption bug on probe().  It should
be a u32 pointer instead of an unsigned long pointer or we write past
the end of the setupdata[] array.

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/atp870u.c