commit | 1b96f8955aaeeb05f7fb7ff548aa12415fbf3904 | [log] [tgz] |
---|---|---|
author | Sven Schnelle <svens@bitebene.org> | Mon Mar 10 22:50:04 2008 +0100 |
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | Fri Mar 14 20:31:18 2008 -0500 |
tree | 2106548e1e383f1d8b9e4ade34a232a0469253d0 | |
parent | 4d3995b14ba7abcdd475d17b8751db55d8a95b9e [diff] |
[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>