Commits
![Kangjie Lu](https://secure.gravatar.com/avatar/f34f48500a3c77a399e967fdb2334c02.jpg?s=96&d=mm)
Kangjie Lu committed 67d812fbe30
slimbus: fix a potential NULL pointer dereference in of_qcom_slim_ngd_register [ Upstream commit 06d5d6b7f9948a89543e1160ef852d57892c750d ] In case platform_device_alloc fails, the fix returns an error code to avoid the NULL pointer dereference. Signed-off-by: Kangjie Lu <kjlu@umn.edu> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>