]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
modules: felix: Remove etherswitch_if.c from Makefile
authorKornel Duleba <mindal@semihalf.com>
Thu, 30 Sep 2021 11:06:34 +0000 (13:06 +0200)
committerWojciech Macek <wma@FreeBSD.org>
Fri, 1 Oct 2021 09:24:08 +0000 (11:24 +0200)
commita75400c5addf905edea7897c5071904556a691f2
treeebf3c39c40498ecca0ebb078903435c75cb172dd
parent8cbbe351053634f8ef8fbaf0c56d8fee46642bf6
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: b542c9e42ba4 (modules: felix: Add needed dependencies)
sys/modules/felix/Makefile