[SCSI] aacraid: check buffer address in aac_internal_transfer
authorSalyzyn, Mark <mark_salyzyn@adaptec.com>
Wed, 21 Mar 2007 17:22:56 +0000 (13:22 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 21 Mar 2007 17:45:15 +0000 (11:45 -0600)
commit20235f35221472f1a127a5d5414f11091eb0a845
tree4b827f2e8a8056974fe6cae63cf06b8c31aa1780
parent0272bf7271eb6895b081c3df34c3ebe50cb769b7
[SCSI] aacraid: check buffer address in aac_internal_transfer

Captured a panic on an older kernel where an application issuing
commands via sg was sending requests that lacked a request_buffer, thus
the buffer pointer used in aac_internal_transer was NULL. The
application was fixed closing the issue, but felt it was advised to
immunize the driver against the eventuality.

Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/aachba.c