* [PATCH] media: dvb: Solve problem with Terratec cinergyT2 when removed and reconnected, or after sleep.
@ 2021-10-06 20:39 rkardell
2021-11-19 16:19 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 2+ messages in thread
From: rkardell @ 2021-10-06 20:39 UTC (permalink / raw)
To: linux-media; +Cc: Mauro Carvalho Chehab, linux-kernel
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@mida.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] media: dvb: Solve problem with Terratec cinergyT2 when removed and reconnected, or after sleep.
2021-10-06 20:39 [PATCH] media: dvb: Solve problem with Terratec cinergyT2 when removed and reconnected, or after sleep rkardell
@ 2021-11-19 16:19 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2021-11-19 16:19 UTC (permalink / raw)
To: rkardell; +Cc: linux-media, linux-kernel
Em Wed, 6 Oct 2021 22:39:29 +0200
rkardell <rkardell@mida.se> escreveu:
> Module used count is incremented 1 time but decremented 2 times by
> dvb_frontend.
> This patch inhibit module used count to go to -1.
Same problems of your previous patch:
- utf8 "\xA0" does not map to Unicode
- your SoB/From doesn't contain your name.
>
>
> Signed-off-by: rkl099 <rkardell@mida.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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-19 16:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-06 20:39 [PATCH] media: dvb: Solve problem with Terratec cinergyT2 when removed and reconnected, or after sleep rkardell
2021-11-19 16:19 ` Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox