lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 16 Jun 2009 09:46:08 +0000
From:	Jarek Poplawski <jarkao2@...il.com>
To:	Patrick McHardy <kaber@...sh.net>
Cc:	"David S. Miller" <davem@...emloft.net>,
	Linux Netdev List <netdev@...r.kernel.org>, perex@...ex.cz
Subject: Re: net: fix network drivers ndo_start_xmit() return values

On Tue, Jun 16, 2009 at 11:31:17AM +0200, Patrick McHardy wrote:
> Jarek Poplawski wrote:
> > On Tue, Jun 16, 2009 at 06:16:03AM +0000, Jarek Poplawski wrote:
> >   
> >> On 15-06-2009 19:00, Patrick McHardy wrote:
> >>     
> >>> This patch contains the final driver ndo_start_xmit() return
> >>> value fixups. I'm pretty sure I got them all ...
> >>>       
> >
> > ...You should probably revisit wireless/zd1201.c (return 0) btw.
> 
> Whats wrong with that?

I thought you wanted to replace it with NETDEV_TX_OK, but now I see
you leave both variants in the last patch, so I'm not sure...

Jarek P.

@@ -1759,6 +1753,11 @@ static int hp100_start_xmit(struct sk_buff *skb, struct net_device *dev)
 #endif
 
 	return 0;
+
+drop:
+	dev_kfree_skb(skb);
+	return NETDEV_TX_OK;
+
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ