From: Arvind Yadav <arvind.yadav.cs@gmail.com>
To: sudeep.dutt@intel.com, ashutosh.dixit@intel.com, arnd@arndb.de,
gregkh@linuxfoundation.org, fbarrat@linux.vnet.ibm.com,
andrew.donnellan@au1.ibm.com
Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Subject: [PATCH 0/2] misc: use put_device() instead of kfree()
Date: Mon, 12 Mar 2018 17:06:51 +0530 [thread overview]
Message-ID: <cover.1520849284.git.arvind.yadav.cs@gmail.com> (raw)
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
next reply other threads:[~2018-03-12 11:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-12 11:36 Arvind Yadav [this message]
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-12 11:36 ` Arvind Yadav
2018-03-13 0:26 ` Andrew Donnellan
2018-03-13 9:38 ` Frederic Barrat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1520849284.git.arvind.yadav.cs@gmail.com \
--to=arvind.yadav.cs@gmail.com \
--cc=andrew.donnellan@au1.ibm.com \
--cc=arnd@arndb.de \
--cc=ashutosh.dixit@intel.com \
--cc=fbarrat@linux.vnet.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=sudeep.dutt@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.