Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45386
b: refs/heads/master
c: 3a6b95c
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and Jeff Garzik committed Jan 8, 2007
1 parent 814cedc commit f8f59c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 11897539a967059a817175ea57ad586a1faadd80
refs/heads/master: 3a6b95c81c522d9dbd36b33d33b08e66c87a6088
13 changes: 8 additions & 5 deletions trunk/drivers/s390/net/qeth_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2560,7 +2560,6 @@ qeth_process_inbound_buffer(struct qeth_card *card,
int offset;
int rxrc;
__u16 vlan_tag = 0;
__u16 *vlan_addr;

/* get first element of current buffer */
element = (struct qdio_buffer_element *)&buf->buffer->element[0];
Expand Down Expand Up @@ -4844,9 +4843,11 @@ qeth_arp_query(struct qeth_card *card, char __user *udata)
"(0x%x/%d)\n",
QETH_CARD_IFNAME(card), qeth_arp_get_error_cause(&rc),
tmp, tmp);
copy_to_user(udata, qinfo.udata, 4);
if (copy_to_user(udata, qinfo.udata, 4))
rc = -EFAULT;
} else {
copy_to_user(udata, qinfo.udata, qinfo.udata_len);
if (copy_to_user(udata, qinfo.udata, qinfo.udata_len))
rc = -EFAULT;
}
kfree(qinfo.udata);
return rc;
Expand Down Expand Up @@ -4992,8 +4993,10 @@ qeth_snmp_command(struct qeth_card *card, char __user *udata)
if (rc)
PRINT_WARN("SNMP command failed on %s: (0x%x)\n",
QETH_CARD_IFNAME(card), rc);
else
copy_to_user(udata, qinfo.udata, qinfo.udata_len);
else {
if (copy_to_user(udata, qinfo.udata, qinfo.udata_len))
rc = -EFAULT;
}

kfree(ureq);
kfree(qinfo.udata);
Expand Down

0 comments on commit f8f59c1

Please sign in to comment.