Skip to content
Commit 249b15ba authored by Dan Carpenter's avatar Dan Carpenter Committed by Christoph Hellwig
Browse files

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: d811b848 ('scsi: use sdev as argument for sense code printing')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarJames Bottomley <JBottomley@Parallels.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 85686f69
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment