All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] sh: use put_device() instead of kfree()
@ 2018-03-07 11:15 ` Arvind Yadav
  0 siblings, 0 replies; 6+ messages in thread
From: Arvind Yadav @ 2018-03-07 11:03 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] 6+ messages in thread

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.