diff options
| author | Yang Yingliang <[email protected]> | 2022-11-12 09:29:23 +0000 |
|---|---|---|
| committer | Dominik Brodowski <[email protected]> | 2023-09-03 08:14:48 +0000 |
| commit | 402ab979b29126068e0b596b641422ff7490214c (patch) | |
| tree | 8e181df519ba6ecb189fc52bd7f8c8d0fa80b966 /drivers/gpu/drm/amd/amdgpu | |
| parent | pcmcia: cs: fix possible hung task and memory leak pccardd() (diff) | |
| download | kernel-402ab979b29126068e0b596b641422ff7490214c.tar.gz kernel-402ab979b29126068e0b596b641422ff7490214c.zip | |
pcmcia: ds: fix refcount leak in pcmcia_device_add()
As the comment of device_register() says, it should use put_device()
to give up the reference in the error path. Then, insofar resources
will be freed in pcmcia_release_dev(), the error path is no longer
needed. In particular, this means that the (previously missing) dropping
of the reference to &p_dev->function_config->ref is now handled by
pcmcia_release_dev().
Fixes: 360b65b95bae ("[PATCH] pcmcia: make config_t independent, add reference counting")
Signed-off-by: Yang Yingliang <[email protected]>
[[email protected]: simplification, commit message rewrite]
Signed-off-by: Dominik Brodowski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions
