]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ipu3-cio2: Remove traces of returned buffers
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 12 Oct 2020 15:25:28 +0000 (17:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:26:07 +0000 (11:26 +0100)
commit31d36c707bedb983da5af77d21c820f042de0506
tree67ecf09d4e0727db7fdc6dfcf26a1bfb66cd957a
parent1bb7a3c69c3c43becf9e5d4ee5150ee83fd23ffe
media: ipu3-cio2: Remove traces of returned buffers

commit 61e7f892b5ee1dd10ea8bff805f3c3fe6e535959 upstream.

If starting a video buffer queue fails, the buffers are returned to
videobuf2. Remove the reference to the buffer from the driver's queue as
well.

Fixes: c2a6a07afe4a ("media: intel-ipu3: cio2: add new MIPI-CSI2 driver")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: stable@vger.kernel.org # v4.16 and up
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/intel/ipu3/ipu3-cio2.c