diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2018-04-12 13:14:26 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-23 20:57:32 +0300 |
commit | bad04a55ab1fadfeb83999d338e7fe511d2edfd9 (patch) | |
tree | cebc63371e4017376e843b681ead5f63bd68e0d4 /drivers/media/i2c/saa7110.c | |
parent | 31b9cb6ecd0128a165fe2b437ef63a6fa744de7b (diff) | |
download | linux-bad04a55ab1fadfeb83999d338e7fe511d2edfd9.tar.xz |
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/media/i2c/saa7110.c')
0 files changed, 0 insertions, 0 deletions