Re: [PATCH net v3] net: lan966x: fix parameter check in two functions

From: Simon Horman
Date: Sat Jul 15 2023 - 05:34:37 EST


On Fri, Jul 14, 2023 at 04:51:15PM +0800, Minjie Du wrote:
> Make IS_ERR_OR_NULL() judge the vcap_get_rule() function return.
> in lan966x_ptp_add_trap() and lan966x_ptp_del_trap().
>
> Fixes: 72df3489fb10 ("net: lan966x: Add ptp trap rules")
> Signed-off-by: Minjie Du <duminjie@xxxxxxxx>
> Reviewed-by: Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx>

Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>