diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-12-04 21:36:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-19 10:42:53 +0300 |
commit | a60a3523b398e7372a819f474fbf699edb2204a4 (patch) | |
tree | 351c808c72d4e02176fd39490c96fe165acc830f /Documentation/atomic_t.txt | |
parent | 677794fb0ca277582fa7e901b9cc4f95fe91c7dc (diff) | |
download | linux-a60a3523b398e7372a819f474fbf699edb2204a4.tar.xz |
scsi: core: scsi_get_device_flags_keyed(): Always return device flags
[ Upstream commit a44c9d36509c83cf64f33b93f6ab2e63822c01eb ]
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 <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/atomic_t.txt')
0 files changed, 0 insertions, 0 deletions