commit | 4acd5adecf20bf9af4ae85de10150c13eb3aca65 | [log] [tgz] |
---|---|---|
author | Michael Straube <straube.linux@gmail.com> | Sun Nov 25 10:22:25 2018 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Feb 12 19:47:02 2019 +0100 |
tree | 55c3254bc189a1c9d36216ffcfd32545946043f9 | |
parent | 6eaf5b9e6e7c1dcf2a6d6e149d4cc7afdc3d4d8c [diff] |
staging: pi433: fix potential null dereference [ Upstream commit 64c4c4ca6c129a4191e8e1e91b2d5d9b8d08c518 ] 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: 874bcba65f9a ("staging: pi433: New driver") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>