]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: ipu3-imgu: Add a sanity check for the parameter struct size
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 16 Apr 2020 07:45:07 +0000 (09:45 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 May 2020 11:12:30 +0000 (13:12 +0200)
commit748beff1315147acd88f9f52f8a4b171294d0462
treea1fc51fc49fc140ff612e5d16e3f774b7270f00b
parent65fd0d431042a8d7f3500bfe87c6d71d1bd480d2
media: staging: ipu3-imgu: Add a sanity check for the parameter struct size

There have been cases where seemingly innocuous patches have broken the
uAPI by changing the memory layout of the parameter struct. Generally such
changes also introduce a change in the size of the entire struct. This
patch adds a sanity check to avoid such cases happening in the future.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Tested-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/ipu3/ipu3-css.c