From: Dan Carpenter Date: Tue, 2 Dec 2014 11:07:30 +0000 (+0300) Subject: scsi: set fmt to NULL scsi_extd_sense_format() by default X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~21^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=249b15ba6380830881b7863ca5dd3f33320adfdb;p=pandora-kernel.git scsi: set fmt to NULL scsi_extd_sense_format() by default One of the two callers passes an unintialized pointer as "fmt" and expects it to be set to NULL if there is no format string. Let's make this function work as expected. Fixes: d811b848ebb7 ('scsi: use sdev as argument for sense code printing') Signed-off-by: Dan Carpenter Reviewed-by: James Bottomley Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed