Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds-lp5523: Fix riskiness of the page fault

The last attribute should be terminated as NULL because any member of
attribute structure is accessed while adding the sysfs file.
If not, invalid address may cause the page fault problem.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>

authored by

Kim, Milo and committed by
Bryan Wu
f1625842 23301b7f

+1
+1
drivers/leds/leds-lp5523.c
··· 759 759 &dev_attr_engine2_leds.attr, 760 760 &dev_attr_engine3_load.attr, 761 761 &dev_attr_engine3_leds.attr, 762 + NULL, 762 763 }; 763 764 764 765 static const struct attribute_group lp5523_group = {