From d17a18dd92c91c784fcf7c785fa6bbf178fd0a6d Mon Sep 17 00:00:00 2001 From: Dave Young Date: Mon, 17 Dec 2007 16:20:00 -0800 Subject: [PATCH] pktcdvd: add kobject_put when kobject register fails In kobject_register, the kobject reference is get in kobject_init, and then kobject_add. If kobject_add fail, it will only cleanup the reference got by itself. Signed-off-by: Dave Young Reviewed-by: Pekka Enberg Cc: Greg KH Cc: Peter Osterlund Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed