Re: [PATCH] staging: vt6655: wmgr.c: Fix for possible null pointer dereference

2014-12-14 Thread Joe Perches
On Sun, 2014-12-14 at 23:42 +0100, Rickard Strandqvist wrote: > There is otherwise a risk of a possible null pointer dereference. > Was largely found by using a static code analysis program called cppcheck. [] > diff --git a/drivers/staging/vt6655/wmgr.c b/drivers/staging/vt6655/wmgr.c [] > @@ -439

Re: [PATCH] staging: vt6655: wmgr.c: Fix for possible null pointer dereference

2014-12-14 Thread Rickard Strandqvist
Hi Ok, if you want, otherwise we can put it after the NULL check? Kind regards Rickard Strandqvist 2014-12-14 23:52 GMT+01:00 Joe Perches : > On Sun, 2014-12-14 at 23:42 +0100, Rickard Strandqvist wrote: >> There is otherwise a risk of a possible null pointer dereference. >> Was largely found b

[PATCH] staging: vt6655: wmgr.c: Fix for possible null pointer dereference

2014-12-14 Thread Rickard Strandqvist
There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/staging/vt6655/wmgr.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/stagin