Revision 3808d34838184fd29088d6b3a364ba2f1c018fb6 authored by Stanislaw Gruszka on 02 February 2017, 12:32:10 UTC, committed by David S. Miller on 03 February 2017, 16:13:00 UTC
If ->get_regs_len() callback return 0, we allocate 0 bytes of memory, what print ugly warning in dmesg, which can be found further below. This happen on mac80211 devices where ieee80211_get_regs_len() just return 0 and driver only fills ethtool_regs structure and actually do not provide any dump. However I assume this can happen on other drivers i.e. when for some devices driver provide regs dump and for others do not. Hence preventing to to print warning in ethtool code seems to be reasonable. ethtool: vmalloc: allocation failure: 0 bytes, mode:0x24080c2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_ZERO) <snip> Call Trace: [<ffffffff813bde47>] dump_stack+0x63/0x8c [<ffffffff811b0a1f>] warn_alloc+0x13f/0x170 [<ffffffff811f0476>] __vmalloc_node_range+0x1e6/0x2c0 [<ffffffff811f0874>] vzalloc+0x54/0x60 [<ffffffff8169986c>] dev_ethtool+0xb4c/0x1b30 [<ffffffff816adbb1>] dev_ioctl+0x181/0x520 [<ffffffff816714d2>] sock_do_ioctl+0x42/0x50 <snip> Mem-Info: active_anon:435809 inactive_anon:173951 isolated_anon:0 active_file:835822 inactive_file:196932 isolated_file:0 unevictable:0 dirty:8 writeback:0 unstable:0 slab_reclaimable:157732 slab_unreclaimable:10022 mapped:83042 shmem:306356 pagetables:9507 bounce:0 free:130041 free_pcp:1080 free_cma:0 Node 0 active_anon:1743236kB inactive_anon:695804kB active_file:3343288kB inactive_file:787728kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:332168kB dirty:32kB writeback:0kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 1225424kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no Node 0 DMA free:15900kB min:136kB low:168kB high:200kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15984kB managed:15900kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 3187 7643 7643 Node 0 DMA32 free:419732kB min:28124kB low:35152kB high:42180kB active_anon:541180kB inactive_anon:248988kB active_file:1466388kB inactive_file:389632kB unevictable:0kB writepending:0kB present:3370280kB managed:3290932kB mlocked:0kB slab_reclaimable:217184kB slab_unreclaimable:4180kB kernel_stack:160kB pagetables:984kB bounce:0kB free_pcp:2236kB local_pcp:660kB free_cma:0kB lowmem_reserve[]: 0 0 4456 4456 Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 013e816
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 936 bytes |
asm-offsets.c | -rw-r--r-- | 3.3 KB |
cevt-mn10300.c | -rw-r--r-- | 3.3 KB |
csrc-mn10300.c | -rw-r--r-- | 898 bytes |
entry.S | -rw-r--r-- | 18.6 KB |
fpu-low.S | -rw-r--r-- | 5.1 KB |
fpu-nofpu-low.S | -rw-r--r-- | 1.1 KB |
fpu-nofpu.c | -rw-r--r-- | 921 bytes |
fpu.c | -rw-r--r-- | 4.1 KB |
gdb-io-serial-low.S | -rw-r--r-- | 2.3 KB |
gdb-io-serial.c | -rw-r--r-- | 3.8 KB |
gdb-io-ttysm-low.S | -rw-r--r-- | 2.4 KB |
gdb-io-ttysm.c | -rw-r--r-- | 6.9 KB |
gdb-low.S | -rw-r--r-- | 2.8 KB |
gdb-stub.c | -rw-r--r-- | 44.5 KB |
head.S | -rw-r--r-- | 9.2 KB |
internal.h | -rw-r--r-- | 923 bytes |
io.c | -rw-r--r-- | 794 bytes |
irq.c | -rw-r--r-- | 8.9 KB |
kgdb.c | -rw-r--r-- | 12.1 KB |
kprobes.c | -rw-r--r-- | 16.0 KB |
mn10300-debug.c | -rw-r--r-- | 1.4 KB |
mn10300-serial-low.S | -rw-r--r-- | 5.3 KB |
mn10300-serial.c | -rw-r--r-- | 43.7 KB |
mn10300-serial.h | -rw-r--r-- | 4.0 KB |
mn10300-watchdog-low.S | -rw-r--r-- | 1.7 KB |
mn10300-watchdog.c | -rw-r--r-- | 4.8 KB |
mn10300_ksyms.c | -rw-r--r-- | 1.2 KB |
module.c | -rw-r--r-- | 4.2 KB |
process.c | -rw-r--r-- | 4.2 KB |
profile-low.S | -rw-r--r-- | 1.6 KB |
profile.c | -rw-r--r-- | 1.4 KB |
ptrace.c | -rw-r--r-- | 9.6 KB |
rtc.c | -rw-r--r-- | 1.2 KB |
setup.c | -rw-r--r-- | 6.7 KB |
sigframe.h | -rw-r--r-- | 793 bytes |
signal.c | -rw-r--r-- | 10.3 KB |
smp-low.S | -rw-r--r-- | 2.2 KB |
smp.c | -rw-r--r-- | 27.7 KB |
switch_to.S | -rw-r--r-- | 4.0 KB |
sys_mn10300.c | -rw-r--r-- | 1003 bytes |
time.c | -rw-r--r-- | 3.3 KB |
traps.c | -rw-r--r-- | 16.9 KB |
vmlinux.lds.S | -rw-r--r-- | 2.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...