From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/media/usb/dvb-usb/af9005.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/media/usb/dvb-usb/af9005.c b/kernel/drivers/media/usb/dvb-usb/af9005.c
index b6a2436..9af54fc 100644
--- a/kernel/drivers/media/usb/dvb-usb/af9005.c
+++ b/kernel/drivers/media/usb/dvb-usb/af9005.c
@@ -422,6 +422,10 @@
if (ret == 0)
ret = 2;
} else {
+ if (msg[0].len < 2) {
+ ret = -EOPNOTSUPP;
+ goto unlock;
+ }
/* write one or more registers */
reg = msg[0].buf[0];
addr = msg[0].addr;
@@ -431,6 +435,7 @@
ret = 1;
}
+unlock:
mutex_unlock(&d->i2c_mutex);
return ret;
}
--
Gitblit v1.6.2