]> git.baikalelectronics.ru Git - kernel.git/commit
netback: don't store invalid vif pointer
authorJan Beulich <JBeulich@suse.com>
Tue, 9 Dec 2014 11:47:04 +0000 (11:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 23:30:08 +0000 (18:30 -0500)
commit8a511de01400384275be228a2b2fa650892df593
tree6f4f05da21227b0d2cbd93694f5b6dce8ce4b413
parentc3268ea08bf318ab8eb5547e22981f4d8543956b
netback: don't store invalid vif pointer

When xenvif_alloc() fails, it returns a non-NULL error indicator. To
avoid eventual races, we shouldn't store that into struct backend_info
as readers of it only check for NULL.

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/xenbus.c