aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/coresight/coresight-cpu-debug.c
diff options
context:
space:
mode:
authorArvind Yadav <[email protected]>2018-05-09 18:06:03 +0000
committerGreg Kroah-Hartman <[email protected]>2018-05-14 14:19:59 +0000
commita7082daac85231ddbb0502d777455756e4e3e69d (patch)
treef53eaaac7f63dcc4f4bb61bdd17fc50a5a5bbc71 /drivers/hwtracing/coresight/coresight-cpu-debug.c
parentuio: Prevent device destruction while fds are open (diff)
downloadkernel-a7082daac85231ddbb0502d777455756e4e3e69d.tar.gz
kernel-a7082daac85231ddbb0502d777455756e4e3e69d.zip
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 <[email protected]> Signed-off-by: Mathieu Poirier <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-cpu-debug.c')
0 files changed, 0 insertions, 0 deletions