Re: [PATCH net-next v1] rtnetlink: remove redundant checks for nlattr IFLA_BRIDGE_MODE

From: Simon Horman
Date: Mon Jul 31 2023 - 03:19:41 EST


On Wed, Jul 26, 2023 at 04:05:22PM +0800, Lin Ma wrote:
> The previous patch added the nla_len check in rtnl_bridge_setlink, which
> is the only caller for ndo_bridge_setlink handlers defined in low-level
> driver codes. Hence, this patch cleanups the redundant checks in each
> ndo_bridge_setlink handler function.
>
> Please apply the fix discussed at the link:
> https://lore.kernel.org/all/20230726075314.1059224-1-linma@xxxxxxxxxx/
> first before this one.

FWIIW, the patch at the link above seems to be in net-next now.

>
> Suggested-by: Hangbin Liu <liuhangbin@xxxxxxxxx>
> Signed-off-by: Lin Ma <linma@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>