coresight: release reference taken by 'bus_find_device()'
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 2 Feb 2016 21:13:58 +0000 (14:13 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:30:04 +0000 (15:30 -0600)
commitf03467661ca82e16b05e786c893bb4cb89951ca3
treed125a45421225016b994451bd157612915b9cabb
parent27aa9ceebe6a14dcc961126bd2a3f462dfba256b
coresight: release reference taken by 'bus_find_device()'

The reference count taken by function bus_find_device() needs
to be released if a child device is found, something this patch
is adding.

Reported-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f2dfab3568fc32afeac8b698481e80e7ab2dc658)
drivers/hwtracing/coresight/coresight.c