]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] stex: Fix for potential invalid response
authorEd Lin - PTU <ed.lin@promise.com>
Mon, 26 Jan 2009 10:40:11 +0000 (02:40 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:58:03 +0000 (12:58 -0500)
commitf846f38478a462723b52294a6b182f00302916ab
treea9cba8a221e0c03f5457e23510fc014a772cbe38
parent0bfce380482f020c62483b35f78ffb4d12de6438
[SCSI] stex: Fix for potential invalid response

The interrupt routine is good for normal cases. However, if the firmware
is abnormal and returns an invalid response, the driver may reuse a
ccb structure that has already been handled. This may cause problem.
Fix this by setting the req member to NULL. Next time we know the
response is invalid and handle accordingly if req is NULL.

Signed-off-by: Ed Lin <ed.lin@promise.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/stex.c