patch-2.2.15 linux/drivers/net/hamradio/baycom_epp.c
Next file: linux/drivers/net/hamradio/hdlcdrv.c
Previous file: linux/drivers/net/eql.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/baycom_epp.c
- Orig date:
Fri Mar 26 21:57:41 1999
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/net/hamradio/baycom_epp.c linux/drivers/net/hamradio/baycom_epp.c
@@ -1308,6 +1308,8 @@
break;
case HDLCDRVCTL_CALIBRATE:
+ if (!suser())
+ return -EACCES;
bc->hdlctx.calibrate = hi.data.calibrate * bc->bitrate / 8;
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)