]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: Fix memleak in __feat_register_sp
authorYueHaibing <yuehaibing@huawei.com>
Mon, 1 Apr 2019 01:35:54 +0000 (09:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2019 01:15:10 +0000 (18:15 -0700)
commit16f3242d7ef904212a6011a62753214dad38dde0
tree7f51dc975414b684d55248e63621d135c298a770
parent91e6296110ea7e40613281d6d6416908e20cc71e
dccp: Fix memleak in __feat_register_sp

If dccp_feat_push_change fails, we forget free the mem
which is alloced by kmemdup in dccp_feat_clone_sp_val.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 4f4753910e93 ("dccp: Registration routines for changing feature values")
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/feat.c