mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qeth: no write permission for readonly sysattr
User is not allowed to write into bridge_state sysfs file. Fixed attribute not mislead the user Signed-off-by: Lakhvich Dmitriy <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Reported-by: Peter Oberparleiter <[email protected]> Reviewed-by: Eugene Crosser <[email protected]> Reviewed-by: Thomas Richter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
9846e70b9b
commit
248046ba07
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ static ssize_t qeth_bridge_port_state_show(struct device *dev,
|
|||
return qeth_bridge_port_role_state_show(dev, attr, buf, 1);
|
||||
}
|
||||
|
||||
static DEVICE_ATTR(bridge_state, 0644, qeth_bridge_port_state_show,
|
||||
static DEVICE_ATTR(bridge_state, 0444, qeth_bridge_port_state_show,
|
||||
NULL);
|
||||
|
||||
static ssize_t qeth_bridgeport_hostnotification_show(struct device *dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue