[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1520420267.git.arvind.yadav.cs@gmail.com>
Date: Wed, 7 Mar 2018 16:33:12 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: ysato@...rs.sourceforge.jp, dalias@...c.org
Cc: linux-kernel@...r.kernel.org, linux-sh@...r.kernel.org
Subject: [PATCH 0/2] sh: 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 (2):
[PATCH 1/2] sh: maple: use put_device() instead of kfree()
[PATCH 2/2] sh: superhyway: use put_device() if device_register fail
drivers/sh/maple/maple.c | 3 ++-
drivers/sh/superhyway/superhyway.c | 11 +++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
--
1.9.1
Powered by blists - more mailing lists