提交 3977d033 编写于 作者: M Mike Travis 提交者: David S. Miller

sfc: modify allocation error message

Change error message when alloc_cpumask_var fails.

Repairs "cpumask: convert drivers/net/sfc".
Signed-off-by: NMike Travis <travis@sgi.com>
Acked-by: NBen Hutchings <bhutchings@solarflare.com>
Acked-by: NDavid S. Miller <davem@davemloft.net>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cb1c4b71
......@@ -894,9 +894,9 @@ static int efx_wanted_rx_queues(void)
int count;
int cpu;
if (!alloc_cpumask_var(&core_mask, GFP_KERNEL)) {
if (unlikely(!alloc_cpumask_var(&core_mask, GFP_KERNEL))) {
printk(KERN_WARNING
"efx.c: allocation failure, irq balancing hobbled\n");
"sfc: RSS disabled due to allocation failure\n");
return 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册