diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2018-05-09 21:06:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 17:19:59 +0300 |
commit | a7082daac85231ddbb0502d777455756e4e3e69d (patch) | |
tree | f53eaaac7f63dcc4f4bb61bdd17fc50a5a5bbc71 /drivers/hwtracing/coresight/coresight-etm-perf.c | |
parent | a93e7b331568227500186a465fee3c2cb5dffd1f (diff) | |
download | linux-a7082daac85231ddbb0502d777455756e4e3e69d.tar.xz |
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: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-etm-perf.c')
0 files changed, 0 insertions, 0 deletions