Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336
b: refs/heads/master
c: 9c2b332
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Apr 20, 2005
1 parent 115ea91 commit 9d7b182
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98f245e797a01611d6734c7d192240f1361439d3
refs/heads/master: 9c2b3328f74800bb370d08bb3a4255d5fe833e94
6 changes: 0 additions & 6 deletions trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@
* Any questions? No questions, good. --ANK
*/

#ifdef __i386__
#define NET_CALLER(arg) (*(((void **)&arg) - 1))
#else
#define NET_CALLER(arg) __builtin_return_address(0)
#endif

struct net_device;

#ifdef CONFIG_NETFILTER
Expand Down
12 changes: 3 additions & 9 deletions trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,20 +276,14 @@ void kfree_skbmem(struct sk_buff *skb)

void __kfree_skb(struct sk_buff *skb)
{
if (skb->list) {
printk(KERN_WARNING "Warning: kfree_skb passed an skb still "
"on a list (from %p).\n", NET_CALLER(skb));
BUG();
}
BUG_ON(skb->list != NULL);

dst_release(skb->dst);
#ifdef CONFIG_XFRM
secpath_put(skb->sp);
#endif
if(skb->destructor) {
if (in_irq())
printk(KERN_WARNING "Warning: kfree_skb on "
"hard IRQ %p\n", NET_CALLER(skb));
if (skb->destructor) {
WARN_ON(in_irq());
skb->destructor(skb);
}
#ifdef CONFIG_NETFILTER
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,8 @@ void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more)
return;
}
} else
printk(KERN_DEBUG "rt_bind_peer(0) @%p\n", NET_CALLER(iph));
printk(KERN_DEBUG "rt_bind_peer(0) @%p\n",
__builtin_return_address(0));

ip_select_fb_ident(iph);
}
Expand Down

0 comments on commit 9d7b182

Please sign in to comment.