linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch: V4L stable versions 4.5.3 and 4.5.4
@ 2016-05-11 18:47 David R
  2016-05-11 19:05 ` David R
  0 siblings, 1 reply; 4+ messages in thread
From: David R @ 2016-05-11 18:47 UTC (permalink / raw)
  To: Linux Media Mailing List; +Cc: Linux Kernel Mailing List, gregkh

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

Hi

Please consider applying the attached patch (or something like it) to
V4L2, and whatever is appropriate to the mainstream kernel. Without this
my media server crashes and burns at boot.

See https://lkml.org/lkml/2016/5/7/88 for more details

Thanks
David

[-- Attachment #2: v4l2.diff --]
[-- Type: text/x-patch, Size: 533 bytes --]

--- drivers/media/v4l2-core/videobuf2-core.c.old	2016-05-11 18:44:50.917083559 +0100
+++ drivers/media/v4l2-core/videobuf2-core.c	2016-05-11 18:45:10.136184837 +0100
@@ -1665,7 +1665,7 @@ static int __vb2_get_done_vb(struct vb2_
 	 * Only remove the buffer from done_list if v4l2_buffer can handle all
 	 * the planes.
 	 */
-	ret = call_bufop(q, verify_planes_array, *vb, pb);
+	ret = pb ? call_bufop(q, verify_planes_array, *vb, pb) : 0;
 	if (!ret)
 		list_del(&(*vb)->done_entry);
 	spin_unlock_irqrestore(&q->done_lock, flags);

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch: V4L stable versions 4.5.3 and 4.5.4
  2016-05-11 18:47 Patch: V4L stable versions 4.5.3 and 4.5.4 David R
@ 2016-05-11 19:05 ` David R
  2016-05-11 20:38   ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 4+ messages in thread
From: David R @ 2016-05-11 19:05 UTC (permalink / raw)
  To: Linux Media Mailing List; +Cc: Linux Kernel Mailing List, gregkh

On 11/05/16 19:47, David R wrote:
> Hi
> 
> Please consider applying the attached patch (or something like it) to
> V4L2, and whatever is appropriate to the mainstream kernel. Without this
> my media server crashes and burns at boot.
> 
> See https://lkml.org/lkml/2016/5/7/88 for more details
> 
> Thanks
> David
> 
I see the offending patch was reverted earlier today. My box is fine
with my (more simple) alternative, but your call.

David

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch: V4L stable versions 4.5.3 and 4.5.4
  2016-05-11 19:05 ` David R
@ 2016-05-11 20:38   ` Mauro Carvalho Chehab
  2016-05-11 21:07     ` Sakari Ailus
  0 siblings, 1 reply; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2016-05-11 20:38 UTC (permalink / raw)
  To: David R
  Cc: Linux Media Mailing List, Linux Kernel Mailing List, gregkh,
	Sakari Ailus

Hi David,

Em Wed, 11 May 2016 20:05:22 +0100
David R <david@unsolicited.net> escreveu:

> On 11/05/16 19:47, David R wrote:
> > Hi
> > 
> > Please consider applying the attached patch (or something like it) to
> > V4L2, and whatever is appropriate to the mainstream kernel. Without this
> > my media server crashes and burns at boot.
> > 
> > See https://lkml.org/lkml/2016/5/7/88 for more details
> > 
> > Thanks
> > David
> >   
> I see the offending patch was reverted earlier today. My box is fine
> with my (more simple) alternative, but your call.

Yes, I noticed the bug earlier today, while testing a DVB device.
As this affects 2 stable releases plus the upcoming Kernel 4.6,
I decided to just revert it for now, while we don't solve the
issue.

Your patch looks good. So, eventually it will be merged on a new
version of this patch, after we test it properly.

Thanks!
Mauro

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch: V4L stable versions 4.5.3 and 4.5.4
  2016-05-11 20:38   ` Mauro Carvalho Chehab
@ 2016-05-11 21:07     ` Sakari Ailus
  0 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2016-05-11 21:07 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: David R, Linux Media Mailing List, Linux Kernel Mailing List,
	gregkh, hverkuil

Hi Mauro and David,

On Wed, May 11, 2016 at 05:38:23PM -0300, Mauro Carvalho Chehab wrote:
> Hi David,
> 
> Em Wed, 11 May 2016 20:05:22 +0100
> David R <david@unsolicited.net> escreveu:
> 
> > On 11/05/16 19:47, David R wrote:
> > > Hi
> > > 
> > > Please consider applying the attached patch (or something like it) to
> > > V4L2, and whatever is appropriate to the mainstream kernel. Without this
> > > my media server crashes and burns at boot.
> > > 
> > > See https://lkml.org/lkml/2016/5/7/88 for more details
> > > 
> > > Thanks
> > > David
> > >   
> > I see the offending patch was reverted earlier today. My box is fine
> > with my (more simple) alternative, but your call.
> 
> Yes, I noticed the bug earlier today, while testing a DVB device.
> As this affects 2 stable releases plus the upcoming Kernel 4.6,
> I decided to just revert it for now, while we don't solve the
> issue.
> 
> Your patch looks good. So, eventually it will be merged on a new
> version of this patch, after we test it properly.

Indeed vb2_core_dqbuf() is called with pb == NULL in file I/O, which was
unfortunately missed until now.

The proposed fix looks good to me.

-- 
Kind regards,

Sakari Ailus
e-mail: sakari.ailus@iki.fi	XMPP: sailus@retiisi.org.uk

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-11 21:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-11 18:47 Patch: V4L stable versions 4.5.3 and 4.5.4 David R
2016-05-11 19:05 ` David R
2016-05-11 20:38   ` Mauro Carvalho Chehab
2016-05-11 21:07     ` Sakari Ailus

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).