devfreq: update device suspended check
Update device suspended condition check in get_freq function,
in some scenarios the device is in suspended and if node
is null, the condition will pass and wrongly code will
proceed to access the node pointer which is null,
update if condition for device suspended state.
Change-Id: Ia18aeaf24c788294beb30d2f9d92d0e85fe90bc6
Signed-off-by:
Santosh Mardi <gsantosh@codeaurora.org>
Loading
Please register or sign in to comment