From: Sven Schnelle Date: Mon, 10 Mar 2008 21:50:04 +0000 (+0100) Subject: [SCSI] gdth: Allocate sense_buffer to prevent NULL pointer dereference X-Git-Tag: v2.6.25-rc7~58^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b96f8955aaeeb05f7fb7ff548aa12415fbf3904;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed