patch-2.3.99-pre1 linux/drivers/net/sis900.c

Next file: linux/drivers/net/skfp/drvfbi.c
Previous file: linux/drivers/net/shaper.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/drivers/net/sis900.c linux/drivers/net/sis900.c
@@ -1127,7 +1127,7 @@
 		data[3] = mdio_read(net_dev, data[0] & 0x1f, data[1] & 0x1f);
 		return 0;
 	case SIOCDEVPRIVATE+2:          	/* Write the specified MII register */
-		if (!suser())
+		if (!capable(CAP_NET_ADMIN))
 			return -EPERM;
 		mdio_write(net_dev, data[0] & 0x1f, data[1] & 0x1f, data[2]);
 		return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)