Re: [PATCH] staging: pi433: fix potential null dereference

2018-11-26 Thread Dan Carpenter
On Sun, Nov 25, 2018 at 10:22:25AM +0100, Michael Straube wrote: > Add a test for successful call to cdev_alloc() to avoid > potential null dereference. Issue reported by smatch. > Fixes: 874bcba65f9a ("staging: pi433: New driver") > Signed-off-by: Michael Straube > --- > drivers/staging/pi43

[PATCH] staging: pi433: fix potential null dereference

2018-11-25 Thread Michael Straube
Add a test for successful call to cdev_alloc() to avoid potential null dereference. Issue reported by smatch. Signed-off-by: Michael Straube --- drivers/staging/pi433/pi433_if.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433