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
- Lines: 9
- Date:
Fri Apr 21 12:46:17 2000
- Orig file:
v2.2.14/drivers/net/hamradio/hdlcdrv.c
- Orig date:
Sat Aug 14 02:27:29 1999
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)