[PATCH] vhost-net: defer f->private_data until setup succeeds

Rusty Russell
Mon, 04 Jan 2010 02:33:12 -0000

On Thu, 24 Dec 2009 04:36:50 pm Michael S. Tsirkin
wrote:
> On Tue, Dec 22, 2009 at 11:02:28AM -0800, Chris Wright wrote:
> > Trivial change, just for readability.  The filp is not installed on
> > failure, so the current code is not incorrect (also vhost_dev_init
> > currently has no failure case).  This just treats setting
f->private_data
> > as something with global scope (sure, true only after fd_install).
> >
> > Signed-off-by: Chris Wright <chrisw at redhat.com>
>
> Acked-by: Michael S. Tsirkin <mst at redhat.com>

Thanks, applied.

Rusty.