commit | 5fbe9f35dfcd83d94ec9bf4f68a9e0d7cc0550b5 | [log] [tgz] |
---|---|---|
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | Mon Mar 12 17:06:52 2018 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 15 18:12:01 2018 +0100 |
tree | 113b1cd6de62b6e6ca4703846e16107fa8cb7b32 | |
parent | 1b723413aada7383a4b24ded93ed26eee1b3a3ca [diff] |
misc: mic: Release reference count and memory for VOP device Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Release allocated memory for vop device in vop_release_dev(). Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>