Re: [PATCH v2 1/4] i2c: core: fix leaked device refcount on of_find_i2c_* error path

2015-08-01 Thread Wolfram Sang
On Mon, Jul 27, 2015 at 05:30:48PM +0300, Vladimir Zapolskiy wrote: If of_find_i2c_device_by_node() or of_find_i2c_adapter_by_node() find a device by node, but its type does not match, a reference to that device is still held. This change fixes the problem. Signed-off-by: Vladimir Zapolskiy

[PATCH v2 1/4] i2c: core: fix leaked device refcount on of_find_i2c_* error path

2015-07-27 Thread Vladimir Zapolskiy
If of_find_i2c_device_by_node() or of_find_i2c_adapter_by_node() find a device by node, but its type does not match, a reference to that device is still held. This change fixes the problem. Signed-off-by: Vladimir Zapolskiy vladimir_zapols...@mentor.com --- Changes from v1 to v2: * none, new