class: Free the class private data in class_release
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 10 Feb 2010 12:32:49 +0000 (13:32 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Feb 2010 23:43:00 +0000 (15:43 -0800)
commit18d19c96457d172d913510c083bc7411ed40cb10
tree34f1eb4addd2550a3c6cc09cebec06795ef948e4
parent7c0ff870d1ed287504a61ed865f3d728c757436b
class: Free the class private data in class_release

Fix a memory leak by freeing the memory allocated in __class_register
for the class private data.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/class.c