Re: [PATCH] dccp: Fix memleak in __feat_register_sp

From: David Miller
Date: Mon Apr 01 2019 - 21:16:45 EST


From: Yue Haibing <yuehaibing@xxxxxxxxxx>
Date: Mon, 1 Apr 2019 09:35:54 +0800

> From: YueHaibing <yuehaibing@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Fixes: e8ef967a54f4 ("dccp: Registration routines for changing feature values")
> Reviewed-by: Mukesh Ojha <mojha@xxxxxxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied.