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)
commitd6124b409ca33c100170ffde51cd8dff761454a1
tree206aabea49fc3f514eb2ac0f70945fc582a50214
parentafe4155ce940d0c2a8fa3da5a29ea46f98052a73
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: 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