Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75429
b: refs/heads/master
c: 94d4336
h: refs/heads/master
i:
  75427: a067c34
v: v3
  • Loading branch information
Russ Dill authored and Jeff Garzik committed Jan 12, 2008
1 parent 77a28a6 commit 3e4a472
Show file tree
Hide file tree
Showing 2 changed files with 4 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: cadf1855e9f97d3f6857a168e1e7798fe27530a1
refs/heads/master: 94d433630a1e63d383d592d488f60581e0d98190
6 changes: 3 additions & 3 deletions trunk/drivers/net/usb/asix.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ static int asix_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index,
buf,
size,
USB_CTRL_GET_TIMEOUT);
if (err >= 0 && err < size)
err = -EINVAL;
if (!err)
if (err == size)
memcpy(data, buf, size);
else if (err >= 0)
err = -EINVAL;
kfree(buf);

out:
Expand Down

0 comments on commit 3e4a472

Please sign in to comment.