Skip to content

Commit

Permalink
net: ixgbevf: fix a missing check of ixgbevf_write_msg_read_ack
Browse files Browse the repository at this point in the history
If ixgbevf_write_msg_read_ack fails, return its error code upstream

Signed-off-by: Kangjie Lu <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
  • Loading branch information
kengiter authored and Jeff Kirsher committed Jun 5, 2019
1 parent cd45832 commit 20d437e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/ethernet/intel/ixgbevf/vf.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,8 @@ static s32 ixgbevf_update_mc_addr_list_vf(struct ixgbe_hw *hw,
vector_list[i++] = ixgbevf_mta_vector(hw, ha->addr);
}

ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, IXGBE_VFMAILBOX_SIZE);

return 0;
return ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf,
IXGBE_VFMAILBOX_SIZE);
}

/**
Expand Down

0 comments on commit 20d437e

Please sign in to comment.