Re: [PATCH] media: meson: Add NULL check after the call to kmalloc()

2019-09-04 Thread Austin Kim
2019년 9월 4일 (수) 오후 5:43, Rasmus Villemoes 님이 작성: > > On 04/09/2019 10.22, Austin Kim wrote: > > If the kmalloc() return NULL, the NULL pointer dereference will occur. > > new_ts->ts = ts; > > > > Add exception check after the call to kmalloc() is made. > > > > Signed-off-by: Austin Kim > >

Re: [PATCH] media: meson: Add NULL check after the call to kmalloc()

2019-09-04 Thread Austin Kim
2019년 9월 4일 (수) 오후 5:45, Greg KH 님이 작성: > > On Wed, Sep 04, 2019 at 05:22:32PM +0900, Austin Kim wrote: > > If the kmalloc() return NULL, the NULL pointer dereference will occur. > > new_ts->ts = ts; > > > > Add exception check after the call to kmalloc() is made. > > > > Signed-off-by:

Re: [PATCH] media: meson: Add NULL check after the call to kmalloc()

2019-09-04 Thread Rasmus Villemoes
On 04/09/2019 10.22, Austin Kim wrote: > If the kmalloc() return NULL, the NULL pointer dereference will occur. > new_ts->ts = ts; > > Add exception check after the call to kmalloc() is made. > > Signed-off-by: Austin Kim > --- > drivers/staging/media/meson/vdec/vdec_helpers.c | 4 >

Re: [PATCH] media: meson: Add NULL check after the call to kmalloc()

2019-09-04 Thread Greg KH
On Wed, Sep 04, 2019 at 05:22:32PM +0900, Austin Kim wrote: > If the kmalloc() return NULL, the NULL pointer dereference will occur. > new_ts->ts = ts; > > Add exception check after the call to kmalloc() is made. > > Signed-off-by: Austin Kim > --- >

[PATCH] media: meson: Add NULL check after the call to kmalloc()

2019-09-04 Thread Austin Kim
If the kmalloc() return NULL, the NULL pointer dereference will occur. new_ts->ts = ts; Add exception check after the call to kmalloc() is made. Signed-off-by: Austin Kim --- drivers/staging/media/meson/vdec/vdec_helpers.c | 4 1 file changed, 4 insertions(+) diff --git