summaryrefslogtreecommitdiff
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2018-03-11 11:25:51 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-15 14:37:04 +0100
commit3aaba245dfa33270a464d3098b8cce2a2af32784 (patch)
treedcf05f25ddb8adc6bc7f411fb687497038cf3832 /lib/kobject.c
parentc1cc0d51140fbcbb3c8cb08ee7e92020dda9c1af (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