From: Hannes Reinecke Date: Fri, 24 Oct 2014 12:26:57 +0000 (+0200) Subject: scsi: repurpose the last argument from print_opcode_name() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~21^2~1^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9a47bf58ac1d5525ae99922e055d8de87eeae78;p=pandora-kernel.git scsi: repurpose the last argument from print_opcode_name() print_opcode_name() was only ever called with a '0' argument from LLDDs and ULDs which were _not_ supporting variable length CDBs, so the 'if' clause was never triggered. Instead we should be using the last argument to specify the cdb length to avoid accidental overflow when reading the cdb buffer. Signed-off-by: Hannes Reinecke Reviewed-by: Robert Elliott Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed