Re: [PATCH]video:uvesafb: Fix dereference NULL pointer code path

2013-04-02 Thread Tomi Valkeinen
On 2013-03-30 04:53, Wang YanQing wrote: > platform_device_alloc could failed and return NULL, > we should check this before call platform_device_put. > > Signed-off-by: Wang YanQing > --- > drivers/video/uvesafb.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drive

[PATCH]video:uvesafb: Fix dereference NULL pointer code path

2013-03-29 Thread Wang YanQing
platform_device_alloc could failed and return NULL, we should check this before call platform_device_put. Signed-off-by: Wang YanQing --- drivers/video/uvesafb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c index 2f8f82d.

[PATCH]video:uvesafb: Fix dereference NULL pointer code path

2013-01-26 Thread Wang YanQing
platform_device_alloc could failed and return NULL, we should check this before call platform_device_put. Signed-off-by: Wang YanQing --- drivers/video/uvesafb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c index 2f8f82d.