]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
uwb: fix device reference leaks
authorJohan Hovold <johan@kernel.org>
Tue, 1 Nov 2016 11:13:31 +0000 (12:13 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 24 Nov 2016 15:23:56 +0000 (16:23 +0100)
commitb0c22e761d054ac018cbac545cee7b2144939bd3
tree40da42c4c311c9d6df937994afd30c00dc3ec4bd
parent4738e9d2a1891cbef76471754e98e35456280e07
uwb: fix device reference leaks

commit d6124b409ca33c100170ffde51cd8dff761454a1 upstream.

This subsystem consistently fails to drop the device reference taken by
class_find_device().

Note that some of these lookup functions already take a reference to the
returned data, while others claim no reference is needed (or does not
seem need one).

Fixes: 183b9b592a62 ("uwb: add the UWB stack (core files)")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/uwb/lc-rc.c
drivers/uwb/pal.c