Reviewed-by:Laurence Oberman loberman@xxxxxxxxxx> Laurence Oberman Principal Software Maintenance Engineer Red Hat Global Support Services ----- Original Message ----- From: "Ewan Milne" <emilne@xxxxxxxxxx> To: "Hannes Reinecke" <hare@xxxxxxx> Cc: "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>, "Christoph Hellwig" <hch@xxxxxx>, "Johannes Thumshirn" <jthumshirn@xxxxxxxx>, "James Bottomley" <james.bottomley@xxxxxxxxxxxxxxxxxxxxx>, linux-scsi@xxxxxxxxxxxxxxx, "Hannes Reinecke" <hare@xxxxxxxx> Sent: Thursday, March 10, 2016 10:25:08 AM Subject: Re: [PATCH] scsi_sysfs: Fix typo in is_bin_visible() On Thu, 2016-03-10 at 11:25 +0100, Hannes Reinecke wrote: > The test for the existence vpd_pg83 is inverted. > > Fixes: 7e47976bcff ("scsi_sysfs: add 'is_bin_visible' callback") > Signed-off-by: Hannes Reinecke <hare@xxxxxxxx> > --- > drivers/scsi/scsi_sysfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c > index 58ac9c1..d805d55 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; Reviewed-by: Ewan D. Milne <emilne@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html