OSDN Git Service

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)
commit98f9aafa9f411bbc4f352191340b74db0ba908a8
tree98aed6a3f70bb6789950c334cb719a2a80410c9f
parent3abafaf41ab743162cae543932d94575d483ecbb
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