diff options
author | Christoph Hellwig <hch@lst.de> | 2017-02-14 20:15:56 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-02-22 19:34:17 -0500 |
commit | 6fa2b8f9e3ae8dd770d8fa264825f86b146381c8 (patch) | |
tree | f685aa0424ea584c1d95a8d585ec12fa2e1b5c20 /drivers/scsi/osd | |
parent | 148cff67b401e2229c076c0ea418712654be77e4 (diff) |
scsi: sd: improve TUR handling in sd_check_events
Remove bogus evaluations of retval and sshdr when the device is offline,
and fix a possible NULL pointer dereference by allocating the 8 byte
sized sense header on stack.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/osd')
0 files changed, 0 insertions, 0 deletions