diff options
| author | Qiushi Wu <[email protected]> | 2020-06-13 19:05:33 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2020-07-29 17:13:50 +0000 |
| commit | fe3c60684377d5ad9b0569b87ed3e26e12c8173b (patch) | |
| tree | 2cc428956b90a91a15ff8d4c09ee523a6bdcb591 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | Linux 5.8-rc7 (diff) | |
| download | kernel-fe3c60684377d5ad9b0569b87ed3e26e12c8173b.tar.gz kernel-fe3c60684377d5ad9b0569b87ed3e26e12c8173b.zip | |
firmware: Fix a reference count leak.
kobject_init_and_add() takes reference even when it fails.
If this function returns an error, kobject_put() must be called to
properly clean up the memory associated with the object.
Callback function fw_cfg_sysfs_release_entry() in kobject_put()
can handle the pointer "entry" properly.
Signed-off-by: Qiushi Wu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
