Skip to content
Commit 2a02aa88 authored by Naushir Patuck's avatar Naushir Patuck Committed by popcornmix
Browse files

media: bcm2835-unicam: Return early from stop_streaming() if stopped



clk_disable_unprepare() is called unconditionally in stop_streaming().
This is incorrect in the cases where start_streaming() fails, and
unprepares all clocks as part of the failure cleanup. To avoid this,
ensure that clk_disable_unprepare() is only called in stop_streaming()
if the clocks are in a prepared state.

Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>
parent 1cd5b384
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment