diff options
author | Hannes Reinecke <hare@suse.de> | 2016-03-10 11:25:26 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-03-10 20:29:54 -0500 |
commit | 688875826f0dfbe34d9eda4c47b707d08130fe7b (patch) | |
tree | 26de07eb1443261d0b3286fca3c66d7c5335fc50 | |
parent | 3084558658c2f9a48d7c460d57aeb30964c06b7e (diff) | |
download | linux-688875826f0dfbe34d9eda4c47b707d08130fe7b.tar.gz linux-688875826f0dfbe34d9eda4c47b707d08130fe7b.tar.bz2 linux-688875826f0dfbe34d9eda4c47b707d08130fe7b.zip |
scsi_sysfs: Fix typo in is_bin_visible()
The test for the existence vpd_pg83 is inverted.
Fixes: 7e47976bcff ("scsi_sysfs: add 'is_bin_visible' callback")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reported-by: Ewan Milne <emilne@redhat.com>
Reviewed-by: Laurence Oberman loberman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/scsi_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index d16441961f3a..92ffd2406f97 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c @@ -1105,7 +1105,7 @@ static umode_t scsi_sdev_bin_attr_is_visible(struct kobject *kobj, if (attr == &dev_attr_vpd_pg80 && !sdev->vpd_pg80) return 0; - if (attr == &dev_attr_vpd_pg83 && sdev->vpd_pg83) + if (attr == &dev_attr_vpd_pg83 && !sdev->vpd_pg83) return 0; return S_IRUGO; |