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:
Родитель
e1bae75d85
Коммит
f73e0c24bf
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче