diff options
author | Ursula Braun <ursula.braun@de.ibm.com> | 2012-03-07 06:06:28 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-08 10:52:25 +0400 |
commit | e0a8114c034cf8012565c5d56dd90967023cc724 (patch) | |
tree | 3514956ac112db812fb9db1efa4d043e8f09dc19 /drivers/s390/net/qeth_core_mpc.c | |
parent | 205a8b649cf6c0a1e6e7512b65c72df480e2a883 (diff) | |
download | linux-e0a8114c034cf8012565c5d56dd90967023cc724.tar.xz |
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_core_mpc.c')
-rw-r--r-- | drivers/s390/net/qeth_core_mpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_core_mpc.c b/drivers/s390/net/qeth_core_mpc.c index ec24901c802c..7fab6544def6 100644 --- a/drivers/s390/net/qeth_core_mpc.c +++ b/drivers/s390/net/qeth_core_mpc.c @@ -207,6 +207,7 @@ static struct ipa_rc_msg qeth_ipa_rc_msg[] = { {IPA_RC_MC_ADDR_ALREADY_DEFINED, "Multicast address already defined"}, {IPA_RC_LAN_OFFLINE, "STRTLAN_LAN_DISABLED - LAN offline"}, {IPA_RC_INVALID_IP_VERSION2, "Invalid IP version"}, + {IPA_RC_ENOMEM, "Memory problem"}, {IPA_RC_FFFF, "Unknown Error"} }; |