Re: [PATCH net 2/2] vhost: fix ubuf_info cleanup

2013-06-11 Thread David Miller
From: "Michael S. Tsirkin" Date: Thu, 6 Jun 2013 15:20:46 +0300 > vhost_net_clear_ubuf_info didn't clear ubuf_info > after kfree, this could trigger double free. > Fix this and simplify this code to make it more robust: make sure > ubuf info is always freed through vhost_net_clear_ubuf_info. > >

[PATCH net 2/2] vhost: fix ubuf_info cleanup

2013-06-06 Thread Michael S. Tsirkin
vhost_net_clear_ubuf_info didn't clear ubuf_info after kfree, this could trigger double free. Fix this and simplify this code to make it more robust: make sure ubuf info is always freed through vhost_net_clear_ubuf_info. Reported-by: Tommi Rantala Signed-off-by: Michael S. Tsirkin --- drivers/v