summaryrefslogtreecommitdiff
path: root/drivers/media/platform/rcar-vin
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-11-26 12:49:32 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-12-02 16:08:58 +0100
commitcf10e09b9a4b28fe6df3fe8fc851fb2c4bd18a14 (patch)
tree0d370da3d73f723b52747483e5364f4dfdb5758c /drivers/media/platform/rcar-vin
parent91807efbe8ec7f591085067d9f96a112e015274b (diff)
media: ov2740: fix dereference before null check on pointer nvm
Currently pointer nvm is being dereferenced before it is being null checked. Fix this by moving the assignments of pointers client and ov2740 so that are after the null check hence avoiding any potential null pointer dereferences on pointer nvm. Fixes: 5e6fd339b68d ("media: ov2740: allow OTP data access during streaming") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/rcar-vin')
0 files changed, 0 insertions, 0 deletions