aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/rocker/rocker_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/rocker/rocker_main.c')
-rw-r--r--drivers/net/ethernet/rocker/rocker_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/rocker/rocker_main.c b/drivers/net/ethernet/rocker/rocker_main.c
index 079f459c73a5..2c5d3f5b84dd 100644
--- a/drivers/net/ethernet/rocker/rocker_main.c
+++ b/drivers/net/ethernet/rocker/rocker_main.c
@@ -2208,10 +2208,12 @@ static int rocker_router_fib_event(struct notifier_block *nb,
2208 2208
2209 if (fen_info->fi->fib_nh_is_v6) { 2209 if (fen_info->fi->fib_nh_is_v6) {
2210 NL_SET_ERR_MSG_MOD(info->extack, "IPv6 gateway with IPv4 route is not supported"); 2210 NL_SET_ERR_MSG_MOD(info->extack, "IPv6 gateway with IPv4 route is not supported");
2211 kfree(fib_work);
2211 return notifier_from_errno(-EINVAL); 2212 return notifier_from_errno(-EINVAL);
2212 } 2213 }
2213 if (fen_info->fi->nh) { 2214 if (fen_info->fi->nh) {
2214 NL_SET_ERR_MSG_MOD(info->extack, "IPv4 route with nexthop objects is not supported"); 2215 NL_SET_ERR_MSG_MOD(info->extack, "IPv4 route with nexthop objects is not supported");
2216 kfree(fib_work);
2215 return notifier_from_errno(-EINVAL); 2217 return notifier_from_errno(-EINVAL);
2216 } 2218 }
2217 } 2219 }