Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 248046ba authored by Lakhvich Dmitriy's avatar Lakhvich Dmitriy Committed by David S. Miller
Browse files

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: default avatarLakhvich Dmitriy <ldmitriy@ru.ibm.com>
Signed-off-by: default avatarUrsula Braun <ursula.braun@de.ibm.com>
Reported-by: default avatarPeter Oberparleiter <oberpar@linux.vnet.ibm.com>
Reviewed-by: default avatarEugene Crosser <Eugene.Crosser@ru.ibm.com>
Reviewed-by: default avatarThomas Richter <tmricht@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9846e70b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);
	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);
		   NULL);


static ssize_t qeth_bridgeport_hostnotification_show(struct device *dev,
static ssize_t qeth_bridgeport_hostnotification_show(struct device *dev,