diff options
| author | 2026-01-24 00:37:38 +0800 | |
|---|---|---|
| committer | 2026-05-13 14:07:27 -0700 | |
| commit | e64bca63647db1d5518198d6c5ca2dbcc66b182b (patch) | |
| tree | 29bda94b5f04399326925ca65dd0d8d7c8ab3038 /include/linux/amba/ssh:/git@git.zx2c4.com | |
| parent | drm/msm: Fix GMEM_BASE for A650 (diff) | |
drm/msm/adreno: Fix a reference leak in a6xx_gpu_init()
In a6xx_gpu_init(), node is obtained via of_parse_phandle().
While there was a manual of_node_put() at the end of the
common path, several early error returns would bypass this call,
resulting in a reference leak.
Fix this by using the __free(device_node) cleanup handler to
release the reference when the variable goes out of scope.
Fixes: 5a903a44a984 ("drm/msm/a6xx: Introduce GMU wrapper support")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/700661/
Message-ID: <20260124-a6xx_gpu-v1-1-fa0c8b2dcfb1@gmail.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'include/linux/amba/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
