Commit f73e0c24 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

rocker: fix an error code

We intended to return PTR_ERR() here instead of 1.

Fixes: 1f9993f6 ('rocker: fix a neigh entry leak issue')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e1bae75d
...@@ -1449,7 +1449,7 @@ static int ofdpa_port_ipv4_resolve(struct ofdpa_port *ofdpa_port, ...@@ -1449,7 +1449,7 @@ static int ofdpa_port_ipv4_resolve(struct ofdpa_port *ofdpa_port,
if (!n) { if (!n) {
n = neigh_create(&arp_tbl, &ip_addr, dev); n = neigh_create(&arp_tbl, &ip_addr, dev);
if (IS_ERR(n)) if (IS_ERR(n))
return IS_ERR(n); return PTR_ERR(n);
} }
/* If the neigh is already resolved, then go ahead and /* If the neigh is already resolved, then go ahead and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment