Re: [PATCH] rc: correctly handling failed allocation

2016-03-03 Thread Mauro Carvalho Chehab
Em Tue, 16 Feb 2016 10:54:54 + Sean Young escreveu: > On Mon, Feb 15, 2016 at 09:33:11PM -0500, Insu Yun wrote: > > Since rc_allocate_device() uses kmalloc, > > it can returns NULL, so need to check, > > otherwise, NULL derefenrece can be happened. > > Thanks for catching that. > > > Sig

Re: [PATCH] rc: correctly handling failed allocation

2016-02-16 Thread Sean Young
On Mon, Feb 15, 2016 at 09:33:11PM -0500, Insu Yun wrote: > Since rc_allocate_device() uses kmalloc, > it can returns NULL, so need to check, > otherwise, NULL derefenrece can be happened. Thanks for catching that. > Signed-off-by: Insu Yun > --- > drivers/media/rc/igorplugusb.c | 3 +++ > 1 f

[PATCH] rc: correctly handling failed allocation

2016-02-15 Thread Insu Yun
Since rc_allocate_device() uses kmalloc, it can returns NULL, so need to check, otherwise, NULL derefenrece can be happened. Signed-off-by: Insu Yun --- drivers/media/rc/igorplugusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/rc/igorplugusb.c b/drivers/media/rc/igorpl