]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a1c31c5f42f15b21883518a15e59712de5368e1
treead1501e540db23490a383b14a9af62f6db0ed27f
parentfe997580f318d8a2676542dfde2f835690f5fa37
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