]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[SCSI] mpt2sas : fix oops when firmware sends large sense buffer size
authorEric Moore <eric.moore@lsi.com>
Tue, 21 Apr 2009 21:38:43 +0000 (15:38 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 27 Apr 2009 15:53:56 +0000 (10:53 -0500)
commit0d04df9b4a83c50ebe2143f20c2d5469c83ba314
tree80ebe645b66fcad6ec87ebe6baff037836dc81ad
parent03ea1115506c53b46cec2177deb189d186bb80dd
[SCSI] mpt2sas : fix oops when firmware sends large sense buffer size

There is a bug in firmware where the reply message frame says there is a
16kb sense buffer, when in reality its only 20 bytes.  This fix insures
the memcpy action doesn't corrupte the memory beyond the 90 bytes allocated in
the scsi command for sense buffer.

Signed-off-by: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c