patch-2.2.15 linux/drivers/net/hamradio/hdlcdrv.c

Next file: linux/drivers/net/irda/Config.in
Previous file: linux/drivers/net/hamradio/baycom_epp.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/net/hamradio/hdlcdrv.c linux/drivers/net/hamradio/hdlcdrv.c
@@ -701,6 +701,8 @@
 		break;		
 
 	case HDLCDRVCTL_CALIBRATE:
+		if(!suser())
+			return -EPERM;
 		s->hdlctx.calibrate = bi.data.calibrate * s->par.bitrate / 16;
 		return 0;
 

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