scsi: aacraid: reading out of bounds
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 25 Jul 2017 19:49:55 +0000 (22:49 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Jul 2017 02:09:21 +0000 (22:09 -0400)
commite6fd916a625110d75bd4d15b8488df44cf41c9fc
tree2fc0bb5a15efd7fac015f06e5ab7a43526949c17
parent722477c4f2c50bc8d800d293a3bc5aa843f16e8d
scsi: aacraid: reading out of bounds

"qd.id" comes directly from the copy_from_user() on the line before so
we should verify that it's within bounds.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/aachba.c