Commits
![Benoit Parrot](https://secure.gravatar.com/avatar/8147f6cd07a8049135ff0c12c4edbd4f.jpg?s=96&d=mm)
Benoit Parrot committed 38fe27ccf93
media: i2c: ov5640: fix potential null pointer dereference Found by klocworks: 384 (Local) drivers/media/i2c/ov5640.c:2591 NPD.FUNC.MUST (1:Critical) Analyze Pointer 'ctrls->pixel_rate' returned from call to function 'v4l2_ctrl_new_std' at line 2587 may be NULL and will be dereferenced at line 2591. * ov5640.c:2588: 'ctrls->pixel_rate' is assigned the return value from function 'v4l2_ctrl_new_std'. * v4l2-ctrls.c:2290: 'v4l2_ctrl_new_std' explicitly returns a NULL value. * ov5640.c:2591: 'ctrls->pixel_rate' is explicitly dereferenced. Signed-off-by: Benoit Parrot <bparrot@ti.com>