]> 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)
commit0abcad0eea26a4493dbabfe7fe360fc593dc5681
treead1501e540db23490a383b14a9af62f6db0ed27f
parent8dac05c59bf79ec6f88ca07187677fa43d737642
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