mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 09:31:09 +00:00
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:04a1839950
("net: aquantia: implement data PTP datapath") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
207136dfeb
commit
76d7774e20
1 changed files with 2 additions and 0 deletions
|
@ -678,6 +678,8 @@ static int aq_ptp_poll(struct napi_struct *napi, int budget)
|
|||
|
||||
err = aq_nic->aq_hw_ops->hw_ring_hwts_rx_fill(aq_nic->aq_hw,
|
||||
&aq_ptp->hwts_rx);
|
||||
if (err < 0)
|
||||
goto err_exit;
|
||||
|
||||
was_cleaned = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue