]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] gdth: Allocate sense_buffer to prevent NULL pointer dereference
authorSven Schnelle <svens@bitebene.org>
Mon, 10 Mar 2008 21:50:04 +0000 (22:50 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 15 Mar 2008 01:31:18 +0000 (20:31 -0500)
commitb6a9a8adb09671b8fe21c584a9e6b5442cd6561a
tree2106548e1e383f1d8b9e4ade34a232a0469253d0
parenta640d7e24d68926bf0009e3d2328631df0f5fee3
[SCSI] gdth: Allocate sense_buffer to prevent NULL pointer dereference

Fix NULL pointer dereference during execution of Internal commands,
where gdth only allocates scp, but not scp->sense_buffer. The rest of
the code assumes that sense_buffer is allocated, which leads to a kernel
oops e.g. on reboot (during cache flush).

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/gdth.c