rocker: fix an error code

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

Fixes: 1f9993f682 ('rocker: fix a neigh entry leak issue')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dan Carpenter 2016-02-27 14:31:43 +03:00 committed by David S. Miller
parent e1bae75d85
commit f73e0c24bf

View file

@ -1449,7 +1449,7 @@ static int ofdpa_port_ipv4_resolve(struct ofdpa_port *ofdpa_port,
if (!n) {
n = neigh_create(&arp_tbl, &ip_addr, dev);
if (IS_ERR(n))
return IS_ERR(n);
return PTR_ERR(n);
}
/* If the neigh is already resolved, then go ahead and