diff options
| author | Suman Anna <[email protected]> | 2017-05-09 23:58:24 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-05-16 21:06:41 +0000 |
| commit | 0d83539092ddb1ab79b4d65bccb866bf07ea2ccd (patch) | |
| tree | f0b3168108e1c6afbb51982bcd8099a9265f1cce /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | misc: pci_endpoint_test: select CRC32 (diff) | |
| download | kernel-0d83539092ddb1ab79b4d65bccb866bf07ea2ccd.tar.gz kernel-0d83539092ddb1ab79b4d65bccb866bf07ea2ccd.zip | |
uio: fix incorrect memory leak cleanup
Commit 75f0aef6220d ("uio: fix memory leak") has fixed up some
memory leaks during the failure paths of the addition of uio
attributes, but still is not correct entirely. A kobject_uevent()
failure still needs a kobject_put() and the kobject container
structure allocation failure before the kobject_init() doesn't
need a kobject_put(). Fix this properly.
Fixes: 75f0aef6220d ("uio: fix memory leak")
Signed-off-by: Suman Anna <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
