]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: do not destroy/free embedded linux cdevs
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 30 Mar 2021 08:44:19 +0000 (11:44 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 6 Apr 2021 00:38:29 +0000 (03:38 +0300)
commit7f9867f8c65b1b3e590dba4dc432a4bc8cf01f68
treed7432de25a51fa43b52d21e6fca1a5b55e47e004
parent28b482e2baf43cdd30e8b9bd090e6d9f405cf4b3
linuxkpi: do not destroy/free embedded linux cdevs

They have their own lifetime managed by the containing objects.
Premature and unexpected free causes corruption.

Reviewed by: hselasky
Sponsored by: Mellanox Technologies/NVidia Networking
MFC after: 1 week
sys/compat/linuxkpi/common/src/linux_compat.c
sys/compat/linuxkpi/common/src/linux_compat.c.orig