Re: [PATCH] virtio:linux:kernel:NULL check after kmalloc is needed

2019-01-10 Thread Vincent Stehle
Hi, On Wed, Jan 09, 2019 at 09:30:37AM -0500, Michael S. Tsirkin wrote: > On Tue, Jan 08, 2019 at 01:40:33PM +0800, Yi Wang wrote: > > From: "huang.zijiang" > > > > NULL check is needed because kmalloc maybe return NULL. > > > > Signed-off-by: huang.zijiang > > Can't hurt I will queue it. > > >

Re: [PATCH] virtio:linux:kernel:NULL check after kmalloc is needed

2019-01-09 Thread Michael S. Tsirkin
On Tue, Jan 08, 2019 at 01:40:33PM +0800, Yi Wang wrote: > From: "huang.zijiang" > > NULL check is needed because kmalloc maybe return NULL. > > Signed-off-by: huang.zijiang Can't hurt I will queue it. > --- > tools/virtio/linux/kernel.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff