summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-pca963x.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2018-04-12 12:14:26 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-23 19:57:32 +0200
commitbad04a55ab1fadfeb83999d338e7fe511d2edfd9 (patch)
treecebc63371e4017376e843b681ead5f63bd68e0d4 /drivers/leds/leds-pca963x.c
parentmedia: ov7740: Fix number of controls hint (diff)
downloadlinux-bad04a55ab1fadfeb83999d338e7fe511d2edfd9.tar.xz
linux-bad04a55ab1fadfeb83999d338e7fe511d2edfd9.zip
media: ov7740: Check for possible NULL return value in control creation
Check that creating the control actually succeeded before accessing it. A failure would lead to NULL pointer reference. Fix this. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/leds/leds-pca963x.c')
0 files changed, 0 insertions, 0 deletions