lkml.org 
[lkml]   [2018]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] driver core: use put_device() instead of kfree()
Date
Never directly free @dev after calling device_register(), even
if it returned an error! Always use put_device() to give up the
reference initialized.

Arvind Yadav (4):
[PATCH 1/4] base: soc: use put_device() instead of kfree()
[PATCH 2/4] driver core: platform: use put_device() if device_register fail
[PATCH 3/4] driver core: node: use put_device() if device_register fail
[PATCH 4/4] driver core: cpu: use put_device() if device_register fail

drivers/base/cpu.c | 4 +++-
drivers/base/node.c | 4 +++-
drivers/base/platform.c | 4 +++-
drivers/base/soc.c | 2 ++
4 files changed, 11 insertions(+), 3 deletions(-)

--
2.7.4

\
 
 \ /
  Last update: 2018-03-11 06:56    [W:0.050 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site