mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
staging: pi433: fix potential null dereference
[ Upstream commit64c4c4ca6c] Add a test for successful call to cdev_alloc() to avoid potential null dereference. Issue reported by smatch. Signed-off-by: Michael Straube <straube.linux@gmail.com> Fixes:874bcba65f("staging: pi433: New driver") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f1d84e3c45
commit
f860782b9f
1 changed files with 4 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue