[libdvben50221] [PATCH] Assign same resource_id in open_session_response when "resource non-existent"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
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;
 }
 

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux