linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] misc: use put_device() instead of kfree()
@ 2018-03-12 11:36 Arvind Yadav
  2018-03-12 11:36 ` [PATCH 1/2] misc: mic: Release reference count and memory for VOP device Arvind Yadav
  2018-03-12 11:36 ` [PATCH 2/2] misc: ocxl: use put_device() instead of device_unregister() Arvind Yadav
  0 siblings, 2 replies; 5+ messages in thread
From: Arvind Yadav @ 2018-03-12 11:36 UTC (permalink / raw)
  To: sudeep.dutt, ashutosh.dixit, arnd, gregkh, fbarrat,
	andrew.donnellan
  Cc: linux-kernel, linuxppc-dev

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] misc: mic: Release reference count and memory for VOP device
  [PATCH 2/2] misc: ocxl: use put_device() instead of device_unregister()

 drivers/misc/mic/bus/vop_bus.c | 6 ++++--
 drivers/misc/ocxl/pci.c        | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2018-03-13  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-12 11:36 [PATCH 0/2] misc: use put_device() instead of kfree() Arvind Yadav
2018-03-12 11:36 ` [PATCH 1/2] misc: mic: Release reference count and memory for VOP device Arvind Yadav
2018-03-12 11:36 ` [PATCH 2/2] misc: ocxl: use put_device() instead of device_unregister() Arvind Yadav
2018-03-13  0:26   ` Andrew Donnellan
2018-03-13  9:38   ` Frederic Barrat

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).