Skip to content
Commit 9bb086e5 authored by Chen Zhou's avatar Chen Zhou Committed by Greg Kroah-Hartman
Browse files

staging: greybus: fix a missing-check bug in gb_lights_light_config()



In gb_lights_light_config(), 'light->name' is allocated by kstrndup().
It returns NULL when fails, add check for it.

Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Acked-by: default avatarRui Miguel Silva <rmfrfs@gmail.com>
Link: https://lore.kernel.org/r/20200401030017.100274-1-chenzhou10@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c42f7363
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment