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>
Sat, 26 Nov 2016 08:54:53 +0000 (09:54 +0100)
commit680bc27065b9792373c1b7d4491bd58c03757f0d
treed173296c9b7cf05c1e7c84c151ea48a879d208b0
parentdd214a159de6089aa0f33e56e54f20016d96bbd7
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uwb/lc-rc.c
drivers/uwb/pal.c