net: ixgbevf: fix a missing check of ixgbevf_write_msg_read_ack
authorKangjie Lu <kjlu@umn.edu>
Sat, 9 Mar 2019 03:31:23 +0000 (21:31 -0600)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 5 Jun 2019 20:04:30 +0000 (13:04 -0700)
If ixgbevf_write_msg_read_ack fails, return its error code upstream

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/vf.c

index cd3b81300cc76be1e22bb9b43daab203fb2667e3..d5ce4963654813e7cba4fee67c0f9e320d04dfd2 100644 (file)
@@ -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);
 }
 
 /**