Skip to content

Commit 0593fa8

Browse files
iveceragregkh
authored andcommitted
be2net: fix status check in be_cmd_pmac_add()
[ Upstream commit fe68d8bfe59c561664aa87d827aa4b320eb08895 ] 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 <sathya.perla@broadcom.com> Cc: Ajit Khaparde <ajit.khaparde@broadcom.com> Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Cc: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Ivan Vecera <cera@cera.cz> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5416a88 commit 0593fa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/emulex/benet/be_cmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ int be_cmd_pmac_add(struct be_adapter *adapter, u8 *mac_addr,
10521052
err:
10531053
spin_unlock_bh(&adapter->mcc_lock);
10541054

1055-
if (status == MCC_STATUS_UNAUTHORIZED_REQUEST)
1055+
if (base_status(status) == MCC_STATUS_UNAUTHORIZED_REQUEST)
10561056
status = -EPERM;
10571057

10581058
return status;

0 commit comments

Comments
 (0)