media: rp1: cfe: Fix error paths in cfe_start_streaming
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 21 Dec 2023 17:59:15 +0000 (17:59 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:26 +0000 (11:35 +0000)
commit73316d882abcca2f0a63659a5bf80198f7c27495
treec567de0ea5ad34ed7205d411abb67bb5dd721603
parentfd68f69ae580ec88fffbf2aa03e742547a2e4ae6
media: rp1: cfe: Fix error paths in cfe_start_streaming

Noted that if we get "node link is not enabled", then we also
get the videobuf2 splat for the driver not cleaning up correctly
on a failed start_streaming, and indeed we weren't returning the
buffers.

Checking the other error paths, noted that the "FE enabled, but
FE_CONFIG node is not" path was not calling pm_runtime_put.

Fix both paths.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/platform/raspberrypi/rp1_cfe/cfe.c