OSDN Git Service

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)
commita5047a3400d51c043a6501f960eefc8b102c9203
tree62e734abf359ffc4a2afe94f9329463d5524c18c
parent84f1b2dc0c47b11aff3de1af237e8377e8bb7898
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