[DLM] fix new_lockspace error exit [5/6]
authorDavid Teigland <teigland@redhat.com>
Fri, 18 May 2007 14:02:20 +0000 (09:02 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:22:40 +0000 (08:22 +0100)
Fix the error path when exiting new_lockspace().  It was kfree'ing the
lockspace struct at the end, but that's only valid if it exits before
kobject_register occured.  After kobject_register we have to let the
kobject do the freeing.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

No differences found