sctp: Correctly cleanup procfs entries upon failure.
authorWei Yongjun <yjwei@cn.fujitsu.com>
Mon, 16 Jun 2008 23:59:55 +0000 (16:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jun 2008 23:59:55 +0000 (16:59 -0700)
commit80896a3584bbff9ff9ad4dde735517c4de68d736
tree0646aee2e49f0d8c789a3239d579a6e9e7fee0bb
parent93653e0448196344d7699ccad395eaebd30359d1
sctp: Correctly cleanup procfs entries upon failure.

This patch remove the proc fs entry which has been created if fail to
set up proc fs entry for the SCTP protocol.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/protocol.c