linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] sh: use put_device() instead of kfree()
@ 2018-03-07 11:15 Arvind Yadav
  2018-03-07 11:15 ` [PATCH 1/2] sh: maple: " Arvind Yadav
  2018-03-07 11:15 ` [PATCH 2/2] sh: superhyway: use put_device() if device_register fail Arvind Yadav
  0 siblings, 2 replies; 3+ messages in thread
From: Arvind Yadav @ 2018-03-07 11:15 UTC (permalink / raw)
  To: ysato, dalias; +Cc: linux-kernel, linux-sh

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-07 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-07 11:15 [PATCH 0/2] sh: use put_device() instead of kfree() Arvind Yadav
2018-03-07 11:15 ` [PATCH 1/2] sh: maple: " Arvind Yadav
2018-03-07 11:15 ` [PATCH 2/2] sh: superhyway: use put_device() if device_register fail Arvind Yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).