]> git.baikalelectronics.ru Git - kernel.git/commit
uwb: fix device reference leaks
authorJohan Hovold <johan@kernel.org>
Tue, 1 Nov 2016 11:13:31 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Nov 2016 15:04:04 +0000 (09:04 -0600)
commit20583a1f8b4af815bf55b99d5db2e3b20bf1cd70
tree206aabea49fc3f514eb2ac0f70945fc582a50214
parentc5013065c77ed9daf554f88d0cb11afb2e79d5d2
uwb: fix device reference leaks

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: 66d891608863 ("uwb: add the UWB stack (core files)")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uwb/lc-rc.c
drivers/uwb/pal.c