summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth.h
diff options
context:
space:
mode:
authorUrsula Braun <braunu@de.ibm.com>2006-05-24 09:51:11 +0200
committerJeff Garzik <jeff@garzik.org>2006-05-26 21:56:40 -0400
commitb85e1fa196da91e07c98eaf014ae773c2a2e0c4f (patch)
tree30411831501e1af00d4d13b283a70f550c8ab801 /drivers/s390/net/qeth.h
parent7401a4670f0e81d50dcc4e0a7bd2dcb4a5d65e6b (diff)
downloadblackbird-op-linux-b85e1fa196da91e07c98eaf014ae773c2a2e0c4f.tar.gz
blackbird-op-linux-b85e1fa196da91e07c98eaf014ae773c2a2e0c4f.zip
[PATCH] s390: qeth driver fixes
From: Frank Pavlic <fpavlic@de.ibm.com> - correct checking of sscanf-%n value in qeth_string_to_ipaddr(). - don't use netif_stop_queue outside the hard_start_xmit routine. Rather use netif_tx_disable. - don't call qeth_netdev_init on a recovery. Signed-off-by: Frank Pavlic <fpavlic@de.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/s390/net/qeth.h')
-rw-r--r--drivers/s390/net/qeth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth.h b/drivers/s390/net/qeth.h
index 4df0fcd7b10b..65e2b1bc08a5 100644
--- a/drivers/s390/net/qeth.h
+++ b/drivers/s390/net/qeth.h
@@ -1099,7 +1099,7 @@ qeth_string_to_ipaddr4(const char *buf, __u8 *addr)
rc = sscanf(buf, "%d.%d.%d.%d%n",
&in[0], &in[1], &in[2], &in[3], &count);
- if (rc != 4 || count)
+ if (rc != 4 || count<=0)
return -EINVAL;
for (count = 0; count < 4; count++) {
if (in[count] > 255)
OpenPOWER on IntegriCloud