Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3977d033 authored by Mike Travis's avatar Mike Travis Committed by David S. Miller
Browse files

sfc: modify allocation error message



Change error message when alloc_cpumask_var fails.

Repairs "cpumask: convert drivers/net/sfc".

Signed-off-by: default avatarMike Travis <travis@sgi.com>
Acked-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cb1c4b71
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -894,9 +894,9 @@ static int efx_wanted_rx_queues(void)
	int count;
	int count;
	int cpu;
	int cpu;


	if (!alloc_cpumask_var(&core_mask, GFP_KERNEL)) {
	if (unlikely(!alloc_cpumask_var(&core_mask, GFP_KERNEL))) {
		printk(KERN_WARNING
		printk(KERN_WARNING
		       "efx.c: allocation failure, irq balancing hobbled\n");
		       "sfc: RSS disabled due to allocation failure\n");
		return 1;
		return 1;
	}
	}