Commit 07795e7a authored by David S. Miller's avatar David S. Miller

Merge bk://kernel.bkbits.net/acme/net-2.5

into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents 5df7bfe4 1998eb88
......@@ -137,17 +137,6 @@ static const struct pnp_device_id sb1000_pnp_ids[] = {
};
MODULE_DEVICE_TABLE(pnp, sb1000_pnp_ids);
static void
sb1000_setup(struct net_device *dev)
{
dev->type = ARPHRD_ETHER;
dev->mtu = 1500;
dev->addr_len = ETH_ALEN;
/* New-style flags. */
dev->flags = IFF_POINTOPOINT|IFF_NOARP;
}
static int
sb1000_probe_one(struct pnp_dev *pdev, const struct pnp_device_id *id)
{
......@@ -188,11 +177,18 @@ sb1000_probe_one(struct pnp_dev *pdev, const struct pnp_device_id *id)
"S/N %#8.8x, IRQ %d.\n", dev->name, dev->base_addr,
dev->mem_start, serial_number, dev->irq);
dev = alloc_netdev(sizeof(struct sb1000_private), "cm%d", sb1000_setup);
dev = alloc_etherdev(sizeof(struct sb1000_private));
if (!dev) {
error = -ENOMEM;
goto out_release_regions;
}
/*
* The SB1000 is an rx-only cable modem device. The uplink is a modem
* and we do not want to arp on it.
*/
dev->flags = IFF_POINTOPOINT|IFF_NOARP;
SET_MODULE_OWNER(dev);
if (sb1000_debug > 0)
......
......@@ -64,7 +64,7 @@ int br_handle_frame_finish(struct sk_buff *skb)
smp_read_barrier_depends();
if (p == NULL || p->state == BR_STATE_DISABLED) {
kfree(skb);
kfree_skb(skb);
goto out;
}
......
......@@ -55,7 +55,7 @@ static struct sk_buff *dnrmg_build_message(struct sk_buff *rt_skb, int *errp)
nlmsg_failure:
if (skb)
kfree(skb);
kfree_skb(skb);
*errp = -ENOMEM;
if (net_ratelimit())
printk(KERN_ERR "dn_rtmsg: error creating netlink message\n");
......
......@@ -1090,6 +1090,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct sadb_msg *hdr,
return x;
out:
x->km.state = XFRM_STATE_DEAD;
xfrm_state_put(x);
return ERR_PTR(-ENOBUFS);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment