diff options
author | Ursula Braun <ursula.braun@de.ibm.com> | 2012-03-07 02:06:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-07 22:52:25 -0800 |
commit | e0a8114c034cf8012565c5d56dd90967023cc724 (patch) | |
tree | 3514956ac112db812fb9db1efa4d043e8f09dc19 /drivers/s390/net/qeth_l3_main.c | |
parent | 205a8b649cf6c0a1e6e7512b65c72df480e2a883 (diff) | |
download | op-kernel-dev-e0a8114c034cf8012565c5d56dd90967023cc724.zip op-kernel-dev-e0a8114c034cf8012565c5d56dd90967023cc724.tar.gz |
qeth: meaningful return code for set_mac_address
Setting an invalid mac-address for a qeth layer2 device returns
with a strange error code:
# ip link set hsi1 address 00:00:00:00:00:01
RTNETLINK answers: Unknown error 18446744073709486085
Problem is caused by wrong usage of the return_code field within
structure qeth_ipa_cmd.
With this patch the ip command above returns
SIOCSIFHWADDR: Invalid argument
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 73bf888..f859216 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -2430,7 +2430,7 @@ static int qeth_l3_arp_query_cb(struct qeth_card *card, if ((qinfo->udata_len - qinfo->udata_offset) < esize) { QETH_CARD_TEXT_(card, 4, "qaer3%i", -ENOMEM); - cmd->hdr.return_code = -ENOMEM; + cmd->hdr.return_code = IPA_RC_ENOMEM; goto out_error; } |