projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d43e6fb
)
be2net: fix status check in be_cmd_pmac_add()
author
Ivan Vecera
<
[email protected]
>
Fri, 13 Jan 2017 21:38:27 +0000
(22:38 +0100)
committer
David S. Miller
<
[email protected]
>
Mon, 16 Jan 2017 17:28:33 +0000
(12:28 -0500)
Return value from be_mcc_notify_wait() contains a base completion status
together with an additional status. The base_status() macro need to be
used to access base status.
Fixes: e3a7ae2 be2net: Changing MAC Address of a VF was broken
Cc: Sathya Perla <
[email protected]
>
Cc: Ajit Khaparde <
[email protected]
>
Cc: Sriharsha Basavapatna <
[email protected]
>
Cc: Somnath Kotur <
[email protected]
>
Signed-off-by: Ivan Vecera <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/emulex/benet/be_cmds.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/emulex/benet/be_cmds.c
b/drivers/net/ethernet/emulex/benet/be_cmds.c
index 0e74529a42095b311c97dc367c2ba3b20bdfc27c..30e855004c57592f9ab6c0cea2eb73f63b59b7ca 100644
(file)
--- a/
drivers/net/ethernet/emulex/benet/be_cmds.c
+++ b/
drivers/net/ethernet/emulex/benet/be_cmds.c
@@
-1118,7
+1118,7
@@
int be_cmd_pmac_add(struct be_adapter *adapter, u8 *mac_addr,
err:
mutex_unlock(&adapter->mcc_lock);
- if (
status
== MCC_STATUS_UNAUTHORIZED_REQUEST)
+ if (
base_status(status)
== MCC_STATUS_UNAUTHORIZED_REQUEST)
status = -EPERM;
return status;