[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1320672553.2909.41.camel@malcolm>
Date: Mon, 07 Nov 2011 14:29:13 +0100
From: Michael Riesch <michael@...sch.at>
To: Konstantin Khlebnikov <khlebnikov@...nvz.org>
Cc: Oliver Neukum <oneukum@...e.de>, netdev@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>, devel@...nvz.org
Subject: Re: [PATCH] usbnet: fix oops in usbnet_start_xmit
On Sun, 2011-11-06 at 22:33 +0300, Konstantin Khlebnikov wrote:
> This patch fixes the bug added in commit v3.1-rc7-1055-gf9b491e
> SKB can be NULL at this point, at least for cdc-ncm.
OK, I didn't think of that, but...
> Let's call skb_tx_timestamp() after driver specific tx-fixup hacks.
... the reason I put the skb_tx_timestamp() call before the tx_fixup is
that these hacks often perform skb_push/skb_pull or any other kind of
framing. This may result (at least in the case of the asix drivers) in
perfectly correct PTP packets being not recognized as such by the packet
filter.
Can we do a check like this:
if(skb) skb_tx_timestamp()
tx_fixup()
?
Regards, Michael
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists