diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2018-03-11 11:25:48 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-15 14:37:03 +0100 |
commit | ef49ec1dc35112b17f7e928aa08fcab60240bf1d (patch) | |
tree | b735a02ac7d941b7bb4b1403a500c6d0f89e5dc1 /include/video | |
parent | 9de9a449482677a75f1edd2049268a7efc40fc96 (diff) |
base: soc: use put_device() instead of kfree()
Never directly free @dev after calling device_register(), even
if it returned an error! Always use put_device() to give up the
reference initialized.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/video')
0 files changed, 0 insertions, 0 deletions