Skip to content

Commit 76d7774

Browse files
GustavoARSilvadavem330
authored andcommitted
net: aquantia: fix error handling in aq_ptp_poll
Fix currenty ignored returned error by properly checking *err* after calling aq_nic->aq_hw_ops->hw_ring_hwts_rx_fill(). Addresses-Coverity-ID: 1487357 ("Unused value") Fixes: 04a1839 ("net: aquantia: implement data PTP datapath") Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Igor Russkikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 207136d commit 76d7774

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/aquantia/atlantic

1 file changed

+2
-0
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_ptp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ static int aq_ptp_poll(struct napi_struct *napi, int budget)
678678

679679
err = aq_nic->aq_hw_ops->hw_ring_hwts_rx_fill(aq_nic->aq_hw,
680680
&aq_ptp->hwts_rx);
681+
if (err < 0)
682+
goto err_exit;
681683

682684
was_cleaned = true;
683685
}

0 commit comments

Comments
 (0)