Mediatek MT7921 WARN at drivers/base/devres.c devm_kfree

Solution Verified - Updated -

Issue

  • Mediatek MT7921 WARN at drivers/base/devres.c devm_kfree
  • MT7921 Call Trace on RHEL 8.8
  • Upon boot, we encounter stack traces along the lines of:
[    4.210059] WARNING: CPU: 12 PID: 874 at drivers/base/devres.c:1055 devm_kfree+0x3b/0x50

[    4.210094] RIP: 0010:devm_kfree+0x3b/0x50

[    4.210103] Call Trace:
[    4.210105]  mt7921_init_acpi_sar+0x97/0x1f0 [mt7921_common]
[    4.210109]  mt7921_register_device+0x31f/0x530 [mt7921_common]
[    4.210111]  mt7921_pci_probe+0x27c/0x2b0 [mt7921e]
[    4.210113]  ? __pm_runtime_resume+0x54/0x80
[    4.210115]  local_pci_probe+0x42/0x80
[    4.210118]  pci_device_probe+0x109/0x1c0
[    4.210119]  __driver_probe_device+0x210/0x460
[    4.210121]  driver_probe_device+0x1f/0x90
[    4.210122]  __driver_attach+0x86/0x180
[    4.210123]  ? __device_attach_driver+0x110/0x110
[    4.210124]  bus_for_each_dev+0x77/0xc0
[    4.210125]  ? klist_add_tail+0x3b/0x70
[    4.210127]  bus_add_driver+0x164/0x220
[    4.210128]  ? 0xffffffffc0bbf000
[    4.210129]  driver_register+0x6b/0xc0
[    4.210130]  ? 0xffffffffc0bbf000
[    4.210131]  do_one_initcall+0x46/0x1d0
[    4.210133]  ? do_init_module+0x22/0x230
[    4.210135]  ? kmem_cache_alloc_trace+0x142/0x280
[    4.210138]  do_init_module+0x5a/0x230
[    4.210139]  load_module+0x14bf/0x17f0
[    4.210142]  ? __do_sys_init_module+0x13b/0x180
[    4.210143]  __do_sys_init_module+0x13b/0x180
[    4.210145]  do_syscall_64+0x5b/0x1b0
[    4.210146]  entry_SYSCALL_64_after_hwframe+0x61/0xc6

Environment

  • Red Hat Enterprise Linux 8.8 (kernel-4.18.0-477.10.1.el8_8.x86_64)
  • Mediatek MT7921 802.11ax PCI Express Wireless Network Adapter using mt7921e driver (PCI ID [14c3:7961])

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content