leds: triggers: Check return value of kobject_uevent_env()
authorJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 19 Sep 2016 10:44:50 +0000 (12:44 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Tue, 20 Sep 2016 08:22:10 +0000 (10:22 +0200)
commit6f3bad9670729ea3a7c78b3752a89c94ffa2397a
treec5a9cdbbc5f2bb25f9ebe2a10a294419c8a9e124
parentfbfa197afddd13f9bdca1c822f5d5730b50639eb
leds: triggers: Check return value of kobject_uevent_env()

Log error message if kobject_uevent_env() fails in led_trigger_set().

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/leds/led-triggers.c