]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: atomisp: Check return value from compat_alloc_user_space
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 4 Jun 2020 16:16:21 +0000 (18:16 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 16:47:47 +0000 (18:47 +0200)
commit8a781ecf896b49c5c6df7d16f48f53d2ab9ef2fb
tree62e734abf359ffc4a2afe94f9329463d5524c18c
parenteef471c84b0b6fae7c08550f59f9f7e466ad1c59
media: staging: atomisp: Check return value from compat_alloc_user_space

If something gets wrong, return, instead of trying to
convert from a NULL pointer.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_compat_ioctl32.c