From: Johan Hovold Date: Tue, 1 Nov 2016 10:38:18 +0000 (+0100) Subject: mfd: core: Fix device reference leak in mfd_clone_cell X-Git-Tag: v3.2.85~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9df583647cb8f005bc45119a1cbcd1c8320e1558;p=pandora-kernel.git mfd: core: Fix device reference leak in mfd_clone_cell commit 722f191080de641f023feaa7d5648caf377844f5 upstream. Make sure to drop the reference taken by bus_find_device_by_name() before returning from mfd_clone_cell(). Fixes: a9bbba996302 ("mfd: add platform_device sharing support for mfd") Signed-off-by: Johan Hovold Signed-off-by: Lee Jones Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed