Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224992
b: refs/heads/master
c: a5d62a1
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Dec 11, 2010
1 parent fb4e1ee commit 893fb1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f073c7ca29a4a7e14060d9d3ddf09bfbb7cd9cc0
refs/heads/master: a5d62a149bb8f5359aff7ed7dce339752fbabfd9
7 changes: 4 additions & 3 deletions trunk/drivers/isdn/hisax/isar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 893fb1d

Please sign in to comment.