OSDN Git Service

media: rcar-vin: Free buffers with error if hardware stop fails
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 8 Nov 2021 16:02:17 +0000 (16:02 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 19 Nov 2021 06:09:44 +0000 (06:09 +0000)
commitdca7cc1cbd998f6765ba331c89eec5ed205b48d9
tree458755ca2cd4acfbc498b32d738dd1e19d608608
parent0bbaec386cc1f410f4deb8e0ec310096ec1fdef1
media: rcar-vin: Free buffers with error if hardware stop fails

The driver already has logic to detect if it fails to stop properly and
report this error to the user. The driver however did not report the
unused buffers or buffers given to the hardware (if any) with an error,
the buffers where instead returned to user-space in the active state.

Build on the existing detection of the error condition and correctly
return the buffers with an error if it triggers.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-dma.c