diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-09-03 18:26:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 18:24:49 +0200 |
commit | 286661b3777897220ecfcd774bccc68a34667f39 (patch) | |
tree | f8f456ee144eab991f1c7569c1f44cb9a220bccc /drivers/thermal/Makefile | |
parent | Driver core: Clarify device cleanup. (diff) | |
download | linux-286661b3777897220ecfcd774bccc68a34667f39.tar.xz linux-286661b3777897220ecfcd774bccc68a34667f39.zip |
Driver core: Fix cleanup in device_create_vargs().
If device_register() in device_create_vargs() fails, the device
must be cleaned up with put_device() (which is also fine on NULL)
instead of kfree().
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/thermal/Makefile')
0 files changed, 0 insertions, 0 deletions