]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: set fmt to NULL scsi_extd_sense_format() by default
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 Dec 2014 11:07:30 +0000 (14:07 +0300)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Dec 2014 17:26:52 +0000 (18:26 +0100)
commit19df4db2f040af8fc5c984d5c4a7ce6a45539733
tree8e475fe2d9cba9ff41af37522b3020da61fb6686
parentba382d6a3351b194c13916b0f4084ddc1b067892
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: 519a2d5d8e7e ('scsi: use sdev as argument for sense code printing')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/constants.c