diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2018-04-12 12:14:26 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-23 19:57:32 +0200 |
commit | bad04a55ab1fadfeb83999d338e7fe511d2edfd9 (patch) | |
tree | cebc63371e4017376e843b681ead5f63bd68e0d4 /drivers/leds/leds-pca963x.c | |
parent | media: ov7740: Fix number of controls hint (diff) | |
download | linux-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