Re: [PATCH v2] ipvs: add a 'default' case in do_ip_vs_set_ctl()

From: Pablo Neira Ayuso
Date: Tue Dec 13 2022 - 06:29:12 EST


On Mon, Dec 12, 2022 at 04:20:41PM +0200, Julian Anastasov wrote:
>
> Hello,
>
> On Mon, 12 Dec 2022, Li Qiong wrote:
>
> > It is better to return the default switch case with
> > '-EINVAL', in case new commands are added. otherwise,
> > return a uninitialized value of ret.
> >
> > Signed-off-by: Li Qiong <liqiong@xxxxxxxxxxxx>
> > Reviewed-by: Simon Horman <horms@xxxxxxxxxxxx>
>
> Change looks correct to me for -next, thanks!
>
> Acked-by: Julian Anastasov <ja@xxxxxx>

Applied, thanks.