xen-netback: don't de-reference vif pointer after having called xenvif_put()
authorJan Beulich <JBeulich@suse.com>
Tue, 11 Jun 2013 10:00:34 +0000 (11:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 08:25:24 +0000 (01:25 -0700)
commit94f950c4060cd9b1989c565284beb159b9705a50
treead1501e540db23490a383b14a9af62f6db0ed27f
parent99ffc3e74fb0d9d321d2f19c6021e0dbaff2f4b2
xen-netback: don't de-reference vif pointer after having called xenvif_put()

When putting vif-s on the rx notify list, calling xenvif_put() must be
deferred until after the removal from the list and the issuing of the
notification, as both operations dereference the pointer.

Changing this got me to notice that the "irq" variable was effectively
unused (and was of too narrow type anyway).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c