diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2018-03-06 15:35:43 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-30 07:49:04 +0200 |
commit | b29cfb8ae0a309b99251bb1286012ac5d77ce2e5 (patch) | |
tree | c8c6cea7696e2c12ec587067c106083328323b53 /kernel/uid16.c | |
parent | b646b8e5da14b7bf4a1bfa73d25e33f6381d258b (diff) |
workqueue: use put_device() instead of kfree()
[ Upstream commit 537f4146c53c95aac977852b371bafb9c6755ee1 ]
Never directly free @dev after calling device_register(), even
if it returned an error! Always use put_device() to give up the
reference initialized in this function instead.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/uid16.c')
0 files changed, 0 insertions, 0 deletions