lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <ad0a926e-8c5f-eed7-5c3a-96453915ea09@mida.se>
Date:   Wed, 6 Oct 2021 22:39:29 +0200
From:   rkardell <rkardell@...a.se>
To:     linux-media@...r.kernel.org
Cc:     Mauro Carvalho Chehab <mchehab@...nel.org>,
        linux-kernel@...r.kernel.org
Subject: [PATCH] media: dvb: Solve problem with Terratec cinergyT2 when
 removed and reconnected, or after sleep.

Module used count is incremented 1 time but decremented 2 times by 
dvb_frontend.
This patch inhibit module used count to go to -1.


Signed-off-by: rkl099 <rkardell@...a.se>
---
  drivers/media/usb/dvb-usb/cinergyT2-core.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/dvb-usb/cinergyT2-core.c 
b/drivers/media/usb/dvb-usb/cinergyT2-core.c
index 23f1093d2..56f58b3f9 100644
--- a/drivers/media/usb/dvb-usb/cinergyT2-core.c
+++ b/drivers/media/usb/dvb-usb/cinergyT2-core.c
@@ -69,6 +69,7 @@ static int cinergyt2_frontend_attach(struct 
dvb_usb_adapter *adap)
      struct cinergyt2_state *st = d->priv;
      int ret;

+    try_module_get(THIS_MODULE);
      adap->fe_adap[0].fe = cinergyt2_fe_attach(adap->dev);

      mutex_lock(&d->data_mutex);
-- 
2.30.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ