Skip to content
Commit ca9eaebc authored by Maxime Ripard's avatar Maxime Ripard Committed by Dom Cobley
Browse files

clk: requests: Dereference the request pointer after the check



The current code will first dereference the req pointer and then test if
it's NULL, resulting in a NULL pointer dereference if req is indeed
NULL. Reorder the test and derefence to avoid the issue

Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent 272517d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment