[Xen-devel] [PATCH] xen-netback: do not report success if backend_create_xenvif() fails

2014-11-24 Thread Alexey Khoroshilov
If xenvif_alloc() or xenbus_scanf() fail in backend_create_xenvif(), xenbus is left in offline mode but netback_probe() reports success. The patch implements propagation of error code for backend_create_xenvif(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by:

Re: [Xen-devel] [PATCH] xen-netback: do not report success if backend_create_xenvif() fails

2014-11-24 Thread David Miller
From: Alexey Khoroshilov khoroshi...@ispras.ru Date: Mon, 24 Nov 2014 13:58:00 +0300 If xenvif_alloc() or xenbus_scanf() fail in backend_create_xenvif(), xenbus is left in offline mode but netback_probe() reports success. The patch implements propagation of error code for