[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <284842.70159.qm@web39802.mail.mud.yahoo.com>
Date: Fri, 19 Jun 2009 18:35:24 -0700 (PDT)
From: Vinay Venkataraghavan <raghavanvinay@...oo.com>
To: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux net <linux-net@...r.kernel.org>
Subject: netlink interface change and crash while feeing associated sk_buff.
Hello everybody,
I had a question regarding the new netlink interface in the kernels I guess since 2.6.24 and forward.
It looks like the entire netlink interface has changed since that kernel version.
Before the change the netlink function prototype used by drivers is :
void netlinkInput(struct sock *sk, int len)
but this has now changed to :
void netlinkInput(struct sk_buff * skb).
A problem that I am having in my driver is when I receive an skb from my application by the call to sendmsg, I get the packet as an skb in my driver.
Now once I send out the packet and when its time to free the skb, I call dev_kfree_skb_any(skb).
However, this code seems to crash in the freeing of this skb. Is there something wrong that I am doing in the feeing of this skb. Can it not be freed at this point?
Any thoughts?
Thank you.
Vinay
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists