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:
Maxime Ripard <maxime@cerno.tech>
Loading
Please register or sign in to comment