summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan <gnomes@lxorguk.ukuu.org.uk>2015-01-20 13:08:50 +0100
committerJiri Kosina <jkosina@suse.cz>2015-01-20 13:34:23 +0100
commit5a0ccb6b8ad3a769a69d09a0bbe6e55d96ebcb04 (patch)
treee4064a0543d92481e9e61434b27152b47e67b11f
parentdynamic_debug: fix comment (diff)
downloadlinux-5a0ccb6b8ad3a769a69d09a0bbe6e55d96ebcb04.tar.xz
linux-5a0ccb6b8ad3a769a69d09a0bbe6e55d96ebcb04.zip
ibmraid: fix writeable attribute with no store method
https://bugzilla.kernel.org/show_bug.cgi?id=81311 [ 0.603157] WARNING: at drivers/base/core.c:601 device_create_file+0x8d/0xa0() [ 0.603158] Attribute adapter_id: write permission without 'store' [ 0.603159] Modules linked in: i915(+) i2c_algo_bit drm_kms_helper drm mpt2sas(+) pmcraid(+) raid_class scsi_transport_sas i2c_core video Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/pmcraid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index bcb64eb1387f..4d28072d6618 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -4292,7 +4292,7 @@ static ssize_t pmcraid_show_adapter_id(
static struct device_attribute pmcraid_adapter_id_attr = {
.attr = {
.name = "adapter_id",
- .mode = S_IRUGO | S_IWUSR,
+ .mode = S_IRUGO,
},
.show = pmcraid_show_adapter_id,
};