sctp: add a checking for sctp_sysctl_net_register
authorwangweidong <wangweidong1@huawei.com>
Thu, 8 May 2014 12:55:02 +0000 (20:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 May 2014 20:41:09 +0000 (16:41 -0400)
commitf66138c8471442c24c58cdce6ba5f36c5ce93d7a
tree53c95dea1f7859caf3a475e0dc04ad33565ca2ce
parenteb9f37053db5ea11101825d97442cf88754a48d1
sctp: add a checking for sctp_sysctl_net_register

When register_net_sysctl failed, we should free the
sysctl_table.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sysctl.c