diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-11 01:49:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-11 01:52:38 +0100 |
commit | a5d62a149bb8f5359aff7ed7dce339752fbabfd9 (patch) | |
tree | 98e52ed6da45fdeca62a0e32895ec46783cd973c /drivers/isdn | |
parent | bonding: add the debugfs facility to the bonding driver (diff) | |
download | linux-a5d62a149bb8f5359aff7ed7dce339752fbabfd9.tar.xz linux-a5d62a149bb8f5359aff7ed7dce339752fbabfd9.zip |
isdn: Fix printed out copy_from_user() return value after previous change.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/hisax/isar.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/isar.c b/drivers/isdn/hisax/isar.c index c9cd4d22b4a5..d4cce337add2 100644 --- a/drivers/isdn/hisax/isar.c +++ b/drivers/isdn/hisax/isar.c @@ -189,7 +189,7 @@ ISARVersion(struct IsdnCardState *cs, char *s) static int isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf) { - int ret, size, cnt, debug; + int cfu_ret, ret, size, cnt, debug; u_char len, nom, noc; u_short sadr, left, *sp; u_char __user *p = buf; @@ -212,8 +212,9 @@ isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf) cs->debug &= ~(L1_DEB_HSCX | L1_DEB_HSCX_FIFO); #endif - if (copy_from_user(&size, p, sizeof(int))) { - printk(KERN_ERR"isar_load_firmware copy_from_user ret %d\n", ret); + cfu_ret = copy_from_user(&size, p, sizeof(int)); + if (cfu_ret) { + printk(KERN_ERR"isar_load_firmware copy_from_user ret %d\n", cfu_ret); return -EFAULT; } p += sizeof(int); |