Re: [RESEND PATCH] mux: core: fix double get_device()

2018-01-09 Thread Greg Kroah-Hartman
On Mon, Jan 08, 2018 at 07:19:52PM +0100, Peter Rosin wrote: > From: Hans de Goede > > 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). >

[RESEND PATCH] mux: core: fix double get_device()

2018-01-08 Thread Peter Rosin
From: Hans de Goede 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 Signed-off-by: Peter Rosin --- drivers/mu