Skip to content

Commit d372045

Browse files
Andrew Jonesdavem330
authored andcommitted
xen: netback: remove redundant xenvif_put
netbk_fatal_tx_err() calls xenvif_carrier_off(), which does a xenvif_put(). As callers of netbk_fatal_tx_err should only have one reference to the vif at this time, then the xenvif_put in netbk_fatal_tx_err is one too many. Signed-off-by: Andrew Jones <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 07dcf8e commit d372045

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/xen-netback/netback.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ static void netbk_fatal_tx_err(struct xenvif *vif)
893893
{
894894
netdev_err(vif->dev, "fatal error; disabling device\n");
895895
xenvif_carrier_off(vif);
896-
xenvif_put(vif);
897896
}
898897

899898
static int netbk_count_requests(struct xenvif *vif,

0 commit comments

Comments
 (0)