Skip to content
Commit acad9532 authored by sudarsan N's avatar sudarsan N Committed by Maureen Helm
Browse files

drivers: sensor: voltage_divider: fix unchecked pm_device_runtime_get()



Fix Coverity CID 529858 (CWE-252): Previously, the return value of
pm_device_runtime_get() was not checked during PM resume, which could
lead to missed error conditions.

This patch ensures proper error handling by checking and propagating
the return status of the call.

Fixes: #92608

Signed-off-by: default avatarsudarsan N <sudarsansamy2002@gmail.com>
parent 34bd7dc6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment