From 19f1b6fb7b49633dea04fcad3882d116ed0c79d6 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Fri, 23 Sep 2016 07:41:23 +0000 Subject: [PATCH] Prevent cuse4bsd.ko and cuse.ko from loading at the same time by declaring support for the cuse4bsd interface in cuse.ko. Found by: Sergey V. Dyatko MFC after: 1 week --- sys/fs/cuse/cuse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/fs/cuse/cuse.c b/sys/fs/cuse/cuse.c index 6035f8d59d53..33d36c586e2b 100644 --- a/sys/fs/cuse/cuse.c +++ b/sys/fs/cuse/cuse.c @@ -63,6 +63,12 @@ MODULE_VERSION(cuse, 1); +/* + * Prevent cuse4bsd.ko and cuse.ko from loading at the same time by + * declaring support for the cuse4bsd interface in cuse.ko: + */ +MODULE_VERSION(cuse4bsd, 1); + #define NBUSY ((uint8_t *)1) #ifdef FEATURE