patch-2.4.6 linux/drivers/net/wan/cosa.c
Next file: linux/drivers/net/wan/hdlc.c
Previous file: linux/drivers/net/wan/comx-proto-fr.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Jun 27 17:10:55 2001
- Orig file:
v2.4.5/linux/drivers/net/wan/cosa.c
- Orig date:
Tue Mar 6 19:44:36 2001
diff -u --recursive --new-file v2.4.5/linux/drivers/net/wan/cosa.c linux/drivers/net/wan/cosa.c
@@ -1046,15 +1046,15 @@
__get_user(code, &(d->code)))
return -EFAULT;
- if (d->addr < 0 || d->addr > COSA_MAX_FIRMWARE_SIZE)
+ if (addr < 0 || addr > COSA_MAX_FIRMWARE_SIZE)
return -EINVAL;
- if (d->len < 0 || d->len > COSA_MAX_FIRMWARE_SIZE)
+ if (len < 0 || len > COSA_MAX_FIRMWARE_SIZE)
return -EINVAL;
/* If something fails, force the user to reset the card */
cosa->firmware_status &= ~(COSA_FW_RESET|COSA_FW_DOWNLOAD);
- if ((i=download(cosa, d->code, len, addr)) < 0) {
+ if ((i=download(cosa, code, len, addr)) < 0) {
printk(KERN_NOTICE "cosa%d: microcode download failed: %d\n",
cosa->num, i);
return -EIO;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)