From: Lakhvich Dmitriy Date: Fri, 18 Sep 2015 14:06:49 +0000 (+0200) Subject: qeth: no write permission for readonly sysattr X-Git-Tag: KARO-TX6UL-2015-11-03~90^2~276^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=248046ba074dc3cbba4f771f08da8b430662d8ac;p=karo-tx-linux.git 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 Signed-off-by: Ursula Braun Reported-by: Peter Oberparleiter Reviewed-by: Eugene Crosser Reviewed-by: Thomas Richter Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/qeth_l2_sys.c b/drivers/s390/net/qeth_l2_sys.c index 52673cd1db99..692db49e3d2a 100644 --- a/drivers/s390/net/qeth_l2_sys.c +++ b/drivers/s390/net/qeth_l2_sys.c @@ -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,