* Re: [GIT PATCHES FOR 2.6.37] davinci & videobuf fixes
[not found] <201009071123.25174.hverkuil@xs4all.nl>
@ 2010-09-22 18:39 ` Mauro Carvalho Chehab
2010-09-22 18:49 ` Hans Verkuil
0 siblings, 1 reply; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2010-09-22 18:39 UTC (permalink / raw)
To: Hans Verkuil; +Cc: linux-media, Mats Randgaard
Em 07-09-2010 06:23, Hans Verkuil escreveu:
> Hi Mauro,
>
> The following changes since commit 50b9d21ae2ac1b85be46f1ee5aa1b5e588622361:
> Jarod Wilson (1):
> V4L/DVB: mceusb: add two new ASUS device IDs
>
> are available in the git repository at:
>
> ssh://linuxtv.org/git/hverkuil/v4l-dvb.git for-2.6.37
>
> Hans Verkuil (1):
> videobuf-dma-sg: set correct size in last sg element
Ok.
>
> Mats Randgaard (5):
> videobuf-core.c: Replaced BUG_ON with WARN_ON
Why? Please provide a description to allow us to understand why this change makes sense.
Is there any condition where this would be acceptable?
> vpif_cap/disp: Removed section mismatch warning
> vpif_cap/disp: Replaced kmalloc with kzalloc
> vpif_cap: don't ignore return code of videobuf_poll_stream()
The better would be to provide some description for all patches, but, in this
specific case, they're trivial.
Applied, thanks.
> vpif_cap/disp: Fixed strlcpy NULL pointer bug
Hmm... this one doesn't make sense to me. Instead, you should be sure that
config->card_name (or cap->card) is always filled.
Ok, I've applied 4 of the 6 patches (I've included the patch of the last email
on the above).
Please, provide a better solution for the strlcpy NULL pointer bug, properly
filling the config struct in all cases.
Cheers,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [GIT PATCHES FOR 2.6.37] davinci & videobuf fixes
2010-09-22 18:39 ` [GIT PATCHES FOR 2.6.37] davinci & videobuf fixes Mauro Carvalho Chehab
@ 2010-09-22 18:49 ` Hans Verkuil
2010-09-22 19:49 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2010-09-22 18:49 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media, Mats Randgaard
On Wednesday, September 22, 2010 20:39:03 Mauro Carvalho Chehab wrote:
> Em 07-09-2010 06:23, Hans Verkuil escreveu:
> > Hi Mauro,
> >
> > The following changes since commit 50b9d21ae2ac1b85be46f1ee5aa1b5e588622361:
> > Jarod Wilson (1):
> > V4L/DVB: mceusb: add two new ASUS device IDs
> >
> > are available in the git repository at:
> >
> > ssh://linuxtv.org/git/hverkuil/v4l-dvb.git for-2.6.37
> >
> > Hans Verkuil (1):
> > videobuf-dma-sg: set correct size in last sg element
>
> Ok.
> >
> > Mats Randgaard (5):
> > videobuf-core.c: Replaced BUG_ON with WARN_ON
>
> Why? Please provide a description to allow us to understand why this change makes sense.
> Is there any condition where this would be acceptable?
Does it indicate a driver bug? Yes. But it's not a harmful driver bug, i.e. it
will not cause a crash later. So BUG_ON is way overkill. WARN_ON is sufficient.
A bug in the davinci driver actually triggered this BUG_ON for us. Since it's
a BUG_ON you are forced to reboot for no good reason. Note that we are working
on fixing the davinci bug as well.
AFAIK BUG_ON is meant for fatal errors, i.e. continuing will cause crashes later.
That's not at all the case here.
Regards,
Hans
> > vpif_cap/disp: Removed section mismatch warning
> > vpif_cap/disp: Replaced kmalloc with kzalloc
> > vpif_cap: don't ignore return code of videobuf_poll_stream()
>
> The better would be to provide some description for all patches, but, in this
> specific case, they're trivial.
>
> Applied, thanks.
>
> > vpif_cap/disp: Fixed strlcpy NULL pointer bug
>
> Hmm... this one doesn't make sense to me. Instead, you should be sure that
> config->card_name (or cap->card) is always filled.
>
> Ok, I've applied 4 of the 6 patches (I've included the patch of the last email
> on the above).
>
> Please, provide a better solution for the strlcpy NULL pointer bug, properly
> filling the config struct in all cases.
>
> Cheers,
> Mauro
>
--
Hans Verkuil - video4linux developer - sponsored by TANDBERG, part of Cisco
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [GIT PATCHES FOR 2.6.37] davinci & videobuf fixes
2010-09-22 18:49 ` Hans Verkuil
@ 2010-09-22 19:49 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2010-09-22 19:49 UTC (permalink / raw)
To: Hans Verkuil; +Cc: linux-media, Mats Randgaard
Em 22-09-2010 15:49, Hans Verkuil escreveu:
> On Wednesday, September 22, 2010 20:39:03 Mauro Carvalho Chehab wrote:
>> Em 07-09-2010 06:23, Hans Verkuil escreveu:
>>> Hi Mauro,
>>>
>>> The following changes since commit 50b9d21ae2ac1b85be46f1ee5aa1b5e588622361:
>>> Jarod Wilson (1):
>>> V4L/DVB: mceusb: add two new ASUS device IDs
>>>
>>> are available in the git repository at:
>>>
>>> ssh://linuxtv.org/git/hverkuil/v4l-dvb.git for-2.6.37
>>>
>>> Hans Verkuil (1):
>>> videobuf-dma-sg: set correct size in last sg element
>>
>> Ok.
>>>
>>> Mats Randgaard (5):
>>> videobuf-core.c: Replaced BUG_ON with WARN_ON
>>
>> Why? Please provide a description to allow us to understand why this change makes sense.
>> Is there any condition where this would be acceptable?
>
> Does it indicate a driver bug? Yes. But it's not a harmful driver bug, i.e. it
> will not cause a crash later. So BUG_ON is way overkill. WARN_ON is sufficient.
>
> A bug in the davinci driver actually triggered this BUG_ON for us. Since it's
> a BUG_ON you are forced to reboot for no good reason. Note that we are working
> on fixing the davinci bug as well.
>
> AFAIK BUG_ON is meant for fatal errors, i.e. continuing will cause crashes later.
> That's not at all the case here.
Ok, please include this description on the patch. I'm fine with it. I was afraid that
this could be the default behavior for the davinci driver. The better is to put
this patch in the same series where you'll be also correcting the davinci bug.
>
> Regards,
>
> Hans
>
>>> vpif_cap/disp: Removed section mismatch warning
>>> vpif_cap/disp: Replaced kmalloc with kzalloc
>>> vpif_cap: don't ignore return code of videobuf_poll_stream()
>>
>> The better would be to provide some description for all patches, but, in this
>> specific case, they're trivial.
>>
>> Applied, thanks.
>>
>>> vpif_cap/disp: Fixed strlcpy NULL pointer bug
>>
>> Hmm... this one doesn't make sense to me. Instead, you should be sure that
>> config->card_name (or cap->card) is always filled.
>>
>> Ok, I've applied 4 of the 6 patches (I've included the patch of the last email
>> on the above).
>>
>> Please, provide a better solution for the strlcpy NULL pointer bug, properly
>> filling the config struct in all cases.
>>
>> Cheers,
>> Mauro
>>
>
Cheers,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-22 19:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201009071123.25174.hverkuil@xs4all.nl>
2010-09-22 18:39 ` [GIT PATCHES FOR 2.6.37] davinci & videobuf fixes Mauro Carvalho Chehab
2010-09-22 18:49 ` Hans Verkuil
2010-09-22 19:49 ` 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;
as well as URLs for NNTP newsgroup(s).