linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel W. S. Almeida" <dwlsalmeida@gmail.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: "skhan@linuxfoundation.org" <skhan@linuxfoundation.org>,
	"Linux Media Mailing List" <linux-media@vger.kernel.org>,
	"linux-kernel-mentees@lists.linuxfoundation.org\"\"\""
	<linux-kernel-mentees@lists.linuxfoundation.org>
Subject: Re: modprobing 'vidtv' doesn't really do anything
Date: Wed, 20 May 2020 04:22:00 -0300	[thread overview]
Message-ID: <222A87CA-F424-4B7D-ABDF-318BF1A6791F@getmailspring.com> (raw)
In-Reply-To: <20200519104834.3c4bf5d7@coco.lan>

Hi Mauro,

> Actually, passing 0 is not the right thing there. The init code
> should either be using gcc style:
> 
> 	struct psi_write_args psi_args = {}  
> 

I did not know that! Now fixed by replacing " = {0}" with " = {}"

As I said, the probing functions are actually called, but now I am
running into other issues..

I have sent a new revision (v6), in which I have squashed your patch
plus a few changes to the bridge driver.

In vidtv_bridge.c:266, dvb_module_probe always returns NULL. That is
because i2c_client_has_driver(client) fails, because client->dev.driver
is NULL.

I suspect this line is to blame, but I am not sure..
>	i2c_adapter->dev.parent = &dvb->pdev->dev;


Also, when this happens, some error handling code will run starting at
vidtv_bridge.c:383, but that will not remove the modules (i.e. lsmod
will still list the bridge and the demod). Is this expected? Should I
call vidtv_bridge_exit manually?

Also, should I worry about this?

>BUG: KASAN: user-memory-access in >do_init_module+0x1d/0x330
>Read of size 8 at addr 000000008322fe90 by task >modprobe/1290

I did not call this directly and I don't see a way to trace it back to
my code just by looking at "do_init_module+0x1d/0x330"

Thanks

- Daniel

       reply	other threads:[~2020-05-20  7:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200519104834.3c4bf5d7@coco.lan>
2020-05-20  7:22 ` Daniel W. S. Almeida [this message]
     [not found] <20200517022115.5ce8136c@coco.lan>
2020-05-19  7:13 ` modprobing 'vidtv' doesn't really do anything Daniel W. S. Almeida
     [not found] <20200517014237.30e521dd@coco.lan>
2020-05-17  0:04 ` Daniel W. S. Almeida
2020-05-16 22:09 Daniel W. S. Almeida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=222A87CA-F424-4B7D-ABDF-318BF1A6791F@getmailspring.com \
    --to=dwlsalmeida@gmail.com \
    --cc=linux-kernel-mentees@lists.linuxfoundation.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).