net: Push protocol type directly down to header_ops->cache()

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2011-07-12 23:28:12 -07:00
parent 3769cffb1c
commit e69dd336ee
7 changed files with 13 additions and 13 deletions

View File

@@ -1247,7 +1247,7 @@ static void neigh_hh_init(struct neighbour *n, struct dst_entry *dst,
hh->hh_type = protocol;
atomic_set(&hh->hh_refcnt, 2);
if (dev->header_ops->cache(n, hh)) {
if (dev->header_ops->cache(n, hh, protocol)) {
kfree(hh);
return;
}