From: Martin K. Petersen Date: Wed, 20 Jan 2010 07:20:43 +0000 (-0500) Subject: [SCSI] Fix printing of failed 32-byte commands X-Git-Tag: v2.6.34-rc1~284^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77c9cfc51b0d732b2524799810fb30018074fd60;p=pandora-kernel.git [SCSI] Fix printing of failed 32-byte commands Having the large CDB allocation logic in sd.c means that scsi_io_completion does not have access to the command buffer. That in turn causes garbage to be printed when a 32-byte command fails. Move the command printing to sd_done where the command buffer is intact. Clear the command buffer pointer after the extended CDB has been freed. Make scsi_print_command ignore commands with NULL CDB pointers to inhibit printing of garbled command strings. Signed-off-by: Martin K. Petersen Reviewed-by: Boaz Harrosh Signed-off-by: James Bottomley --- Reading git-diff-tree failed