Skip to content

Commit f73e0c2

Browse files
Dan Carpenterdavem330
authored andcommitted
rocker: fix an error code
We intended to return PTR_ERR() here instead of 1. Fixes: 1f9993f ('rocker: fix a neigh entry leak issue') Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e1bae75 commit f73e0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/rocker/rocker_ofdpa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ static int ofdpa_port_ipv4_resolve(struct ofdpa_port *ofdpa_port,
14491449
if (!n) {
14501450
n = neigh_create(&arp_tbl, &ip_addr, dev);
14511451
if (IS_ERR(n))
1452-
return IS_ERR(n);
1452+
return PTR_ERR(n);
14531453
}
14541454

14551455
/* If the neigh is already resolved, then go ahead and

0 commit comments

Comments
 (0)