modules: felix: Remove etherswitch_if.c from Makefile

Having it included confuses KOBJOPLOOKUP resulting in kobj_error_method
being called instead of a devmethod from the switch driver.
That in turn returns ENXIO which was treated as a pointer and
dereferenced by etherswitch ioctl logic causing the kernel to panic.

Fixes: b542c9e42b (modules: felix: Add needed dependencies)
This commit is contained in:
Kornel Duleba 2021-09-30 13:06:34 +02:00 committed by Wojciech Macek
parent 8cbbe35105
commit a75400c5ad

View File

@ -29,7 +29,7 @@
.PATH: ${SRCTOP}/sys/dev/etherswitch/felix
KMOD = felix
SRCS = felix.c etherswitch_if.c etherswitch_if.h
SRCS += bus_if.h device_if.h miibus_if.h ofw_bus_if.h pci_if.h
SRCS = felix.c
SRCS += bus_if.h device_if.h etherswitch_if.h miibus_if.h ofw_bus_if.h pci_if.h
.include <bsd.kmod.mk>