patch-2.1.75 linux/drivers/net/hamradio/soundmodem/sm.c
Next file: linux/drivers/net/ipddp.c
Previous file: linux/drivers/net/hamradio/baycom_ser_hdx.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Dec 21 17:41:24 1997
- Orig file:
v2.1.74/linux/drivers/net/hamradio/soundmodem/sm.c
- Orig date:
Thu Dec 4 14:53:55 1997
diff -u --recursive --new-file v2.1.74/linux/drivers/net/hamradio/soundmodem/sm.c linux/drivers/net/hamradio/soundmodem/sm.c
@@ -592,7 +592,7 @@
return 0;
case HDLCDRVCTL_SETMODE:
- if (!suser() || dev->start)
+ if (dev->start || !suser())
return -EACCES;
hi->data.modename[sizeof(hi->data.modename)-1] = '\0';
return sethw(dev, sm, hi->data.modename);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov