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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 06:11:10 +0000 (22:11 -0800)
commitf2dfab3568fc32afeac8b698481e80e7ab2dc658
treea110852eae4e9221a55eb91506d0f7d96ef90626
parentfae54158792aec705620bdc3938d342879204f0c
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>
drivers/hwtracing/coresight/coresight.c