From 5dd79e1fa592db59e024cca3c07b63c7cb37266e Mon Sep 17 00:00:00 2001 From: zhao Date: Tue, 5 Aug 2025 21:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20patches/900-fix-linux-6.6.?= =?UTF-8?q?patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- patches/900-fix-linux-6.6.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/900-fix-linux-6.6.patch diff --git a/patches/900-fix-linux-6.6.patch b/patches/900-fix-linux-6.6.patch new file mode 100644 index 0000000..f634e5c --- /dev/null +++ b/patches/900-fix-linux-6.6.patch @@ -0,0 +1,13 @@ +diff --git a/dmx_usb.c b/dmx_usb.c +index 4e3372d..7dfb814 100644 +--- a/dmx_usb.c ++++ b/dmx_usb.c +@@ -97,7 +97,7 @@ struct dmx_usb_device { + + + /* prevent races between open() and disconnect() */ +- static DEFINE_SEMAPHORE(disconnect_sem); ++ static DEFINE_SEMAPHORE(disconnect_sem, 1); + + /* local function prototypes */ + static ssize_t dmx_usb_write (struct file *file, const char *buffer, size_t count, loff_t *ppos);