Skip to content

Commit

Permalink
rocker: fix an error code
Browse files Browse the repository at this point in the history
We intended to return PTR_ERR() here instead of 1.

Fixes: 1f9993f ('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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Feb 27, 2016
1 parent e1bae75 commit f73e0c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/rocker/rocker_ofdpa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f73e0c2

Please sign in to comment.