All of lore.kernel.org
 help / color / mirror / Atom feed
* [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent"
@ 2011-01-18 14:42 Tomer Barletz
  2011-05-17 15:46 ` Brice DUBOST
  0 siblings, 1 reply; 7+ messages in thread
From: Tomer Barletz @ 2011-01-18 14:42 UTC (permalink / raw)
  To: linux-media

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

Attached a patch for a bug in the lookup_callback function, were in
case of a non-existent resource, the connected_resource_id is not
initialized and then used in the open_session_response call of the
session layer.

Tomer

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

diff -r d3509d6e9499 lib/libdvben50221/en50221_stdcam_llci.c
--- a/lib/libdvben50221/en50221_stdcam_llci.c	Sat Aug 08 19:17:21 2009 +0200
+++ b/lib/libdvben50221/en50221_stdcam_llci.c	Tue Jan 18 14:51:34 2011 +0200
@@ -351,6 +351,10 @@
 		}
 	}
 
+	/* In case the reousrce does not exist, return the same id in the response.
+	   See 7.2.6.2 */
+	*connected_resource_id = requested_resource_id;
+
 	return -1;
 }
 

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

* Re: [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent"
  2011-01-18 14:42 [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent" Tomer Barletz
@ 2011-05-17 15:46 ` Brice DUBOST
  2011-05-18 19:16   ` Tomer Barletz
  0 siblings, 1 reply; 7+ messages in thread
From: Brice DUBOST @ 2011-05-17 15:46 UTC (permalink / raw)
  To: Tomer Barletz; +Cc: linux-media

On 18/01/2011 15:42, Tomer Barletz wrote:
> Attached a patch for a bug in the lookup_callback function, were in
> case of a non-existent resource, the connected_resource_id is not
> initialized and then used in the open_session_response call of the
> session layer.
> 

Hello

Can you explain what kind of bug it fixes ?

Thanks

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

* Re: [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent"
  2011-05-17 15:46 ` Brice DUBOST
@ 2011-05-18 19:16   ` Tomer Barletz
  2011-05-19 12:58     ` Andreas Oberritter
  0 siblings, 1 reply; 7+ messages in thread
From: Tomer Barletz @ 2011-05-18 19:16 UTC (permalink / raw)
  To: Brice DUBOST; +Cc: linux-media

On Tue, May 17, 2011 at 8:46 AM, Brice DUBOST <braice@braice.net> wrote:
> On 18/01/2011 15:42, Tomer Barletz wrote:
>> Attached a patch for a bug in the lookup_callback function, were in
>> case of a non-existent resource, the connected_resource_id is not
>> initialized and then used in the open_session_response call of the
>> session layer.
>>
>
> Hello
>
> Can you explain what kind of bug it fixes ?
>
> Thanks
>

The standard states that in case the module can't provide the
requested resource , it should reply with the same resource id - this
is the only line that was added.
Also, since the caller to this function might use the variable
returned, this variable must be initialized.
The attached patch solves both bugs.

Tomer

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

* Re: [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent"
  2011-05-18 19:16   ` Tomer Barletz
@ 2011-05-19 12:58     ` Andreas Oberritter
  2011-05-19 21:01       ` Sébastien RAILLARD (COEXSI)
  2011-05-23 17:55       ` Tomer Barletz
  0 siblings, 2 replies; 7+ messages in thread
From: Andreas Oberritter @ 2011-05-19 12:58 UTC (permalink / raw)
  To: Tomer Barletz; +Cc: Brice DUBOST, linux-media

On 05/18/2011 09:16 PM, Tomer Barletz wrote:
> On Tue, May 17, 2011 at 8:46 AM, Brice DUBOST <braice@braice.net> wrote:
>> On 18/01/2011 15:42, Tomer Barletz wrote:
>>> Attached a patch for a bug in the lookup_callback function, were in
>>> case of a non-existent resource, the connected_resource_id is not
>>> initialized and then used in the open_session_response call of the
>>> session layer.
>>>
>>
>> Hello
>>
>> Can you explain what kind of bug it fixes ?
>>
>> Thanks
>>
> 
> The standard states that in case the module can't provide the
> requested resource , it should reply with the same resource id - this
> is the only line that was added.
> Also, since the caller to this function might use the variable
> returned, this variable must be initialized.
> The attached patch solves both bugs.

Can you please resend the patch inline with a proper signed-off-by line,
in order to get it tracked by patchwork.kernel.org?

Regards,
Andreas

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

* RE: [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent"
  2011-05-19 12:58     ` Andreas Oberritter
@ 2011-05-19 21:01       ` Sébastien RAILLARD (COEXSI)
  2011-05-19 22:18         ` Issa Gorissen
  2011-05-23 17:55       ` Tomer Barletz
  1 sibling, 1 reply; 7+ messages in thread
From: Sébastien RAILLARD (COEXSI) @ 2011-05-19 21:01 UTC (permalink / raw)
  To: 'Andreas Oberritter', 'Tomer Barletz'
  Cc: 'Brice DUBOST', linux-media



> -----Original Message-----
> From: linux-media-owner@vger.kernel.org [mailto:linux-media-
> owner@vger.kernel.org] On Behalf Of Andreas Oberritter
> Sent: jeudi 19 mai 2011 14:58
> To: Tomer Barletz
> Cc: Brice DUBOST; linux-media@vger.kernel.org
> Subject: Re: [libdvben50221] [PATCH] Assign same resource_id in
> open_session_response when "resource non-existent"
> 
> On 05/18/2011 09:16 PM, Tomer Barletz wrote:
> > On Tue, May 17, 2011 at 8:46 AM, Brice DUBOST <braice@braice.net>
> wrote:
> >> On 18/01/2011 15:42, Tomer Barletz wrote:
> >>> Attached a patch for a bug in the lookup_callback function, were in
> >>> case of a non-existent resource, the connected_resource_id is not
> >>> initialized and then used in the open_session_response call of the
> >>> session layer.
> >>>
> >>
> >> Hello
> >>
> >> Can you explain what kind of bug it fixes ?
> >>
> >> Thanks
> >>
> >
> > The standard states that in case the module can't provide the
> > requested resource , it should reply with the same resource id - this
> > is the only line that was added.
> > Also, since the caller to this function might use the variable
> > returned, this variable must be initialized.
> > The attached patch solves both bugs.
> 
> Can you please resend the patch inline with a proper signed-off-by line,
> in order to get it tracked by patchwork.kernel.org?
> 

Yes, of course, but I don't find information that can help me to provide the
correct format.
Is-there a documentation somewhere that explains how patches must be
formatted to be correctly tracked?

> Regards,
> Andreas
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media"
> in the body of a message to majordomo@vger.kernel.org More majordomo
> info at  http://vger.kernel.org/majordomo-info.html


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

* Re: [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent"
  2011-05-19 21:01       ` Sébastien RAILLARD (COEXSI)
@ 2011-05-19 22:18         ` Issa Gorissen
  0 siblings, 0 replies; 7+ messages in thread
From: Issa Gorissen @ 2011-05-19 22:18 UTC (permalink / raw)
  To: "Sébastien RAILLARD (COEXSI)"; +Cc: linux-media

On 19/05/11 23:01, Sébastien RAILLARD (COEXSI) wrote:
>
> Yes, of course, but I don't find information that can help me to provide the
> correct format.
> Is-there a documentation somewhere that explains how patches must be
> formatted to be correctly tracked?

This should help
[http://www.linuxtv.org/wiki/index.php/Development:_How_to_submit_patches]

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

* Re: [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent"
  2011-05-19 12:58     ` Andreas Oberritter
  2011-05-19 21:01       ` Sébastien RAILLARD (COEXSI)
@ 2011-05-23 17:55       ` Tomer Barletz
  1 sibling, 0 replies; 7+ messages in thread
From: Tomer Barletz @ 2011-05-23 17:55 UTC (permalink / raw)
  To: Andreas Oberritter; +Cc: Brice DUBOST, linux-media

On Thu, May 19, 2011 at 5:58 AM, Andreas Oberritter <obi@linuxtv.org> wrote:
> On 05/18/2011 09:16 PM, Tomer Barletz wrote:
>> On Tue, May 17, 2011 at 8:46 AM, Brice DUBOST <braice@braice.net> wrote:
>>> On 18/01/2011 15:42, Tomer Barletz wrote:
> ...
>
> Can you please resend the patch inline with a proper signed-off-by line,
> in order to get it tracked by patchwork.kernel.org?
>
> Regards,
> Andreas
>

Here's the patch with the signed-off-by line:

Signed-off-by: Tomer Barletz <barletz@gmail.com>
---
diff -r d3509d6e9499 lib/libdvben50221/en50221_stdcam_llci.c
--- a/lib/libdvben50221/en50221_stdcam_llci.c	Sat Aug 08 19:17:21 2009 +0200
+++ b/lib/libdvben50221/en50221_stdcam_llci.c	Tue Jan 18 14:51:34 2011 +0200
@@ -351,6 +351,10 @@
 		}
 	}

+	/* In case the reousrce does not exist, return the same id in the response.
+	   See 7.2.6.2 */
+	*connected_resource_id = requested_resource_id;
+
 	return -1;
 }

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

end of thread, other threads:[~2011-05-23 17:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 14:42 [libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent" Tomer Barletz
2011-05-17 15:46 ` Brice DUBOST
2011-05-18 19:16   ` Tomer Barletz
2011-05-19 12:58     ` Andreas Oberritter
2011-05-19 21:01       ` Sébastien RAILLARD (COEXSI)
2011-05-19 22:18         ` Issa Gorissen
2011-05-23 17:55       ` Tomer Barletz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.