Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit eaaaac3f authored by Arvind Yadav's avatar Arvind Yadav Committed by Yabin Cui
Browse files

UPSTREAM: coresight: use put_device() instead of kfree()



Never directly free @dev after calling device_register(), even
if it returned an error. Always use put_device() to give up the
reference initialized.

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(Upstream commit a7082daac85231ddbb0502d777455756e4e3e69d).

Bug: 140266694
Change-Id: I50e535126a509e13b18d1cb53af167493fe59534
Signed-off-by: default avatarYabin Cui <yabinc@google.com>
parent 7dace9ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment