diff options
| author | Vladimir Zapolskiy <[email protected]> | 2015-07-27 17:30:48 +0300 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2015-08-01 12:11:58 +0200 |
| commit | e3311469734093724b10c2a81c1193197db03b78 (patch) | |
| tree | 435b300b8fb5257f2d3cbd7003860241bd8a5f80 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | |
| parent | e952849a02524a247967bf7105f36fbb13cd00c2 (diff) | |
i2c: fix leaked device refcount on of_find_i2c_* error path
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 <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions