media: bcm2835-unicam: Correctly handle error propagation for stream on
authorNaushir Patuck <naush@raspberrypi.com>
Wed, 2 Dec 2020 15:22:23 +0000 (15:22 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:07 +0000 (11:33 +0000)
commit8970be71ea26a88c986beaeefeacab8d0a086853
tree1dd588a5dfc6627b47ccdca3792d7bce6d4dc85f
parent65c2dd45a6a18f7d63fb8f5bf331914579059e70
media: bcm2835-unicam: Correctly handle error propagation for stream on

On a failure in start_streaming(), the error code would not propagate to
the calling function on all conditions. This would cause the userland
caller to not know of the failure.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c