openwrt-pf/target/linux/generic/files
Mieczyslaw Nalewaj beb880855c
rtl8367b: fix RTL8367S-VB vlan mc memory handling
The RTL8367S-VB (Family D) uses a software-emulated VLAN MC table
(emu_vlanmc) since it lacks hardware support for the VLAN MC registers
used by earlier chips.

- Add missing NULL check after kzalloc() in rtl8367b_init_regs() to
  prevent NULL pointer dereference on allocation failure.
- Add missing kfree(smi->emu_vlanmc) in rtl8367b_remove() to prevent
  memory leak on driver unload.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/23970
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-06-28 22:25:30 +02:00
..
arch/mips/fw/myloader
Documentation dt-bindings: mtd: partitions: add OpenWrt defined U-Boot Image 2021-01-22 21:03:11 +01:00
drivers rtl8367b: fix RTL8367S-VB vlan mc memory handling 2026-06-28 22:25:30 +02:00
include ar8327: remove platform data support 2026-03-31 11:44:27 +02:00