Skip to contentSkip to conversation

Patch "mfd: sm501: dbg_regs attribute must be read-only" has been added to the 3.10-stable tree

PATCH [email protected] 1 participant 1 message Aug 13, 2015

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

mfd: sm501: dbg_regs attribute must be read-only

to the 3.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
mfd-sm501-dbg_regs-attribute-must-be-read-only.patch
and it can be found in the queue-3.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 8a8320c2e78d1b619a8fa8eb5ae946b8691de604 Mon Sep 17 00:00:00 2001

From: Guenter Roeck <[email protected]>
Date: Sun, 8 Sep 2013 00:25:36 -0700
Subject: mfd: sm501: dbg_regs attribute must be read-only

From: Guenter Roeck <[email protected]>

commit 8a8320c2e78d1b619a8fa8eb5ae946b8691de604 upstream.

Fix:

sm501 sm501: SM501 At b3e00000: Version 050100a0, 8 Mb, IRQ 100 Attribute dbg_regs: write permission without 'store'

------------[ cut here ]------------
WARNING: at drivers/base/core.c:620

dbg_regs does not have a write function and must therefore be marked as read-only.

---
 drivers/mfd/sm501.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/sm501.c +1 -1
@@ -1232,7 +1232,7 @@ static ssize_t sm501_dbg_regs(struct dev
 }
 
 
-static DEVICE_ATTR(dbg_regs, 0666, sm501_dbg_regs, NULL);
+static DEVICE_ATTR(dbg_regs, 0444, sm501_dbg_regs, NULL);
 
 /* sm501_init_reg
  *

Patches currently in stable-queue which might be from [email protected] are

queue-3.10/perf-x86-amd-rework-amd-pmu-init-code.patch queue-3.10/arm-realview-fix-sparsemem-build.patch queue-3.10/mfd-sm501-dbg_regs-attribute-must-be-read-only.patch