diff options
author | Christoph Hellwig <[email protected]> | 2017-02-14 20:15:56 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2017-02-22 19:34:17 -0500 |
commit | 6fa2b8f9e3ae8dd770d8fa264825f86b146381c8 (patch) | |
tree | f685aa0424ea584c1d95a8d585ec12fa2e1b5c20 /scripts/gdb/linux | |
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 <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions