Re: [PATCH] gianfar: reduce stack usage in gianfar_ethtool.c

From
Eric Dumazet <hidden>
Date
2011-08-09 17:59:42
Also in
lkml
Reply to
Joe Perches, 2011-08-09
Le mardi 09 août 2011 à 10:52 -0700, Joe Perches a écrit :
On Tue, 2011-08-09 at 18:53 +0200, Eric Dumazet wrote:
quoted
Le mercredi 10 août 2011 à 00:39 +0800, stufever@gmail.com a écrit :
[]
quoted
quoted
+	if (!local_rqfpr || !local_rqfcr) {
+		pr_err("Out of memory\n");
	Please remove this pr_err(), kmalloc() will complain already.
Always?
I know there's a trace option, but is it always on?
Yes, unless caller added ___GFP_NOWARN in gfp :

ptr = kmalloc(size, GFP_KERNEL | ___GFP_NOWARN);
Thread (8 messages) 8 messages, 3 authors, last reply 2011-08-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help