commit | aa1f10e85b0ab53dee85d8e293c8159d18d293a8 | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Fri Dec 29 00:22:54 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jan 09 14:19:41 2018 +0100 |
tree | 17f0b76f442b515fc12a0d2055e520997d89a851 | |
parent | 06e7e776ca4d36547e503279aeff996cbb292c16 [diff] |
mux: core: fix double get_device() class_find_device already does a get_device on the returned device. So the device returned by of_find_mux_chip_by_node is already referenced and we should not reference it again (and unref it on error). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Peter Rosin <peda@axentia.se> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>