configfs: call drop_link() to cleanup after create_link() failure
authorLouis Rilling <Louis.Rilling@kerlabs.com>
Thu, 12 Jun 2008 15:26:47 +0000 (17:26 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 14 Jul 2008 20:57:16 +0000 (13:57 -0700)
commite75206517504461778c283b942440ef312e437d5
treea0acb0d8cc4527fc00560d7b78a971100fba7f57
parent11c3b79218390a139f2d474ee1e983a672d5839a
configfs: call drop_link() to cleanup after create_link() failure

When allow_link() succeeds but create_link() fails, the subsystem is not
informed of the failure.

This patch fixes this by calling drop_link() on create_link() failures.

Signed-off-by: Louis Rilling <Louis.Rilling@kerlabs.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/configfs/symlink.c