aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorHaoxiang Li <[email protected]>2025-02-27 04:11:31 +0000
committerAndrew Morton <[email protected]>2025-03-06 05:36:19 +0000
commite842f9a1edf306bf36fe2a4d847a0b0d458770de (patch)
tree7868fa924473343624a31e178df3d937e95899ba /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentrapidio: fix an API misues when rio_add_net() fails (diff)
downloadkernel-e842f9a1edf306bf36fe2a4d847a0b0d458770de.tar.gz
kernel-e842f9a1edf306bf36fe2a4d847a0b0d458770de.zip
rapidio: add check for rio_add_net() in rio_scan_alloc_net()
The return value of rio_add_net() should be checked. If it fails, put_device() should be called to free the memory and give up the reference initialized in rio_add_net(). Link: https://lkml.kernel.org/r/[email protected] Fixes: e6b585ca6e81 ("rapidio: move net allocation into core code") Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Haoxiang Li <[email protected]> Cc: Alexandre Bounine <[email protected]> Cc: Matt Porter <[email protected]> Cc: Dan Carpenter <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions