]> err.no Git - linux-2.6/commit
driver core fixes: device_add() cleanup on error
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 22 Sep 2006 09:37:13 +0000 (11:37 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Oct 2006 19:49:55 +0000 (12:49 -0700)
commita306eea40952e6365301e8a2f7d5ffa9c6a1921b
tree5a5b74ef17286728d9b3d5a1eee4e21c73b6e9e6
parent513e7337adc32cdfbffecb99953e45a44e812c2d
driver core fixes: device_add() cleanup on error

Check for return code of device_create_file() and correct cleanup in
the error case in device_add().

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c