From: Matthew Dobson Date: Tue, 22 Nov 2005 05:32:29 +0000 (-0800) Subject: [PATCH] Fix a bug in scsi_get_command X-Git-Tag: v2.6.15-rc3~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79e448bf2d71d52d28c99be4faff9cc51928f90b;p=pandora-kernel.git [PATCH] Fix a bug in scsi_get_command scsi_get_command() attempts to write into a structure that may not have been successfully allocated. Move this write inside the if statement that ensures we won't panic the kernel with a NULL pointer dereference. Signed-off-by: Matthew Dobson Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed