diff options
author | Suman Anna <s-anna@ti.com> | 2017-05-10 02:58:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-13 20:47:59 +0300 |
commit | 4cc339e66447d8bee92a7f8ecbc23d8aa517fba1 (patch) | |
tree | 63a79137781f8cb01b1547619f59ef72015ee1e0 /Kbuild | |
parent | c4eca7ee0ed886529c6446bad7fb5ead5e8129d6 (diff) | |
download | linux-4cc339e66447d8bee92a7f8ecbc23d8aa517fba1.tar.xz |
uio: fix incorrect memory leak cleanup
[ Upstream commit 0d83539092ddb1ab79b4d65bccb866bf07ea2ccd ]
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 <s-anna@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions