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)
commitf15650b7f94879667f253bc32de7431c1baf2d6e
tree6f4f05da21227b0d2cbd93694f5b6dce8ce4b413
parentceaca9dc3c7e6b7bf7e4af0693df7e1c48f6ac02
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