Message ID | 65791906154e3e5ea12ea49127cf7c707325ca56.1730102428.git.leonro@nvidia.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | PCI/sysfs: Fix read permissions for VPD attributes | expand |
diff --git a/drivers/pci/vpd.c b/drivers/pci/vpd.c index e4300f5f304f..2537685cac90 100644 --- a/drivers/pci/vpd.c +++ b/drivers/pci/vpd.c @@ -317,7 +317,7 @@ static ssize_t vpd_write(struct file *filp, struct kobject *kobj, return ret; } -static BIN_ATTR(vpd, 0600, vpd_read, vpd_write, 0); +static BIN_ATTR_RW(vpd, 0); static struct bin_attribute *vpd_attrs[] = { &bin_attr_vpd,