aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback
diff options
context:
space:
mode:
authorAndrew Jones <drjones@redhat.com>2013-02-18 05:29:20 -0500
committerDavid S. Miller <davem@davemloft.net>2013-02-19 00:51:09 -0500
commitd37204566a61d5116d385ae909db8e14a734b30f (patch)
tree1de89382a76c993a0b8c6081609b25eeb6e7f4e2 /drivers/net/xen-netback
parent07dcf8e9cc77e86eedfc28fa37713b5471e906b7 (diff)
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 <drjones@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback')
-rw-r--r--drivers/net/xen-netback/netback.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index cd49ba949636..28543d6c8e40 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -893,7 +893,6 @@ static void netbk_fatal_tx_err(struct xenvif *vif)
893{ 893{
894 netdev_err(vif->dev, "fatal error; disabling device\n"); 894 netdev_err(vif->dev, "fatal error; disabling device\n");
895 xenvif_carrier_off(vif); 895 xenvif_carrier_off(vif);
896 xenvif_put(vif);
897} 896}
898 897
899static int netbk_count_requests(struct xenvif *vif, 898static int netbk_count_requests(struct xenvif *vif,