Re: [PATCH] slimbus: fix a NULL pointer dereference in of_qcom_slim_ngd_register

From: Srinivas Kandagatla
Date: Wed Mar 20 2019 - 10:52:16 EST




On 15/03/2019 06:20, Kangjie Lu wrote:
In case platform_device_alloc fails, the fix returns an error
code to avoid the NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@xxxxxxx>
---
drivers/slimbus/qcom-ngd-ctrl.c | 4 ++++
1 file changed, 4 insertions(+)

Thanks Applied.

--srini