mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-30 06:17:46 +09:00
[ 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>