diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-08-07 18:58:23 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2025-09-06 19:15:17 +0300 |
commit | fc33bf0e097c6834646b98a7b3da0ae5b617f0f9 (patch) | |
tree | 9d2598295e0b08ca423c4effc96fb2e89bdcd7f9 /net/lapb/lapb_out.c | |
parent | 1b237f190eb3d36f52dffe07a40b5eb210280e00 (diff) | |
download | linux-fc33bf0e097c6834646b98a7b3da0ae5b617f0f9.tar.xz |
PM / devfreq: mtk-cci: Fix potential error pointer dereference in probe()
The drv->sram_reg pointer could be set to ERR_PTR(-EPROBE_DEFER) which
would lead to a error pointer dereference. Use IS_ERR_OR_NULL() to check
that the pointer is valid.
Fixes: e09bd5757b52 ("PM / devfreq: mtk-cci: Handle sram regulator probe deferral")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://patchwork.kernel.org/project/linux-pm/patch/aJTNHz8kk8s6Q2os@stanley.mountain/
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions