media: ipu3-cio2: Remove traces of returned buffers
Subsystems (3)
This is an automatic generated email to let you know that the following patch were queued:
Subject: media: ipu3-cio2: Remove traces of returned buffers Author: Sakari Ailus <[email protected]> Date: Mon Oct 12 17:25:28 2020 +0200
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 <[email protected]>
Cc [email protected] # v4.16 and up
Reviewed-by Andy Shevchenko <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
Signed-off-by Mauro Carvalho Chehab <[email protected]>
drivers/media/pci/intel/ipu3/ipu3-cio2.c | 1 + 1 file changed, 1 insertion(+)
---
drivers/media/pci/intel/ipu3/ipu3-cio2.c +1 -0
@@ -791,6 +791,7 @@ static void cio2_vb2_return_all_buffers(struct cio2_queue *q,atomic_dec (&q->bufs_queued);vb2_buffer_done (&q->bufs[i]->vbb.vb2_buf, state); + q->bufs[i] =NULL ; } } }