[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1520747459.git.arvind.yadav.cs@gmail.com>
Date: Sun, 11 Mar 2018 11:25:47 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 0/4] driver core: 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.
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
Powered by blists - more mailing lists