diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2018-03-11 11:25:51 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-15 14:37:04 +0100 |
commit | 3aaba245dfa33270a464d3098b8cce2a2af32784 (patch) | |
tree | dcf05f25ddb8adc6bc7f411fb687497038cf3832 /lib/kobject.c | |
parent | c1cc0d51140fbcbb3c8cb08ee7e92020dda9c1af (diff) |
driver core: cpu: use put_device() if device_register fail
if device_register() 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 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions