]> git.baikalelectronics.ru Git - kernel.git/commit
media: ipu3-cio2: Check receved the size against payload size, not buffer size
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 13 Oct 2020 12:12:02 +0000 (14:12 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Nov 2020 09:31:15 +0000 (10:31 +0100)
commit844379fc07254da0f3a43e456c5475c05ab6afec
tree98aed6a3f70bb6789950c334cb719a2a80410c9f
parent45d83a3116768dbf90f9aadcdcd472c3c68e692e
media: ipu3-cio2: Check receved the size against payload size, not buffer size

Compare the received size of the payload size, not the allocated size of
the buffer that is page aligned. This way also images that aren't aligned
to page size are not warned about.

Also wrap a line over 80 characters.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Jean-Michel Hautbois <jeanmichel.hautbois@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2.c