diff options
| author | Bart Van Assche <[email protected]> | 2017-12-04 10:36:31 -0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-12-07 21:06:58 -0500 |
| commit | a44c9d36509c83cf64f33b93f6ab2e63822c01eb (patch) | |
| tree | ede53055f843d13fe1cbf5d7b9d9dccf6c21e50d /tools/perf/scripts/python | |
| parent | f0317e88e3290854b7929fa8a2746e92d94b736c (diff) | |
scsi: core: scsi_get_device_flags_keyed(): Always return device flags
Since scsi_get_device_flags_keyed() callers do not check whether or not
the returned value is an error code, change that function such that it
returns a flags value even if the 'key' argument is invalid. Note:
since commit 28a0bc4120d3 ("scsi: sd: Implement blacklist option for
WRITE SAME w/ UNMAP") bit 31 is a valid device information flag so
checking whether bit 31 is set in the return value is not sufficient to
tell the difference between an error code and a flags value.
Signed-off-by: Bart Van Assche <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Johannes Thumshirn <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions