]> 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)
commit42bb6f84e9babd09481980a43b9ae5ca1ca75e63
tree6f4f05da21227b0d2cbd93694f5b6dce8ce4b413
parent7c64fc4c44f922fd09895a9c273614c22bea7b61
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