rpms/kernel/F-9 linux-2.6-gspca-vc0321-fix-frame-overflow.patch, NONE, 1.1 kernel.spec, 1.876, 1.877

Chuck Ebbert cebbert at fedoraproject.org
Fri Dec 12 00:07:14 UTC 2008


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32592

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-gspca-vc0321-fix-frame-overflow.patch 
Log Message:
Fix vc0321 based webcams (F10#474990)

linux-2.6-gspca-vc0321-fix-frame-overflow.patch:

--- NEW FILE linux-2.6-gspca-vc0321-fix-frame-overflow.patch ---
diff -r ffeb9d2be572 linux/drivers/media/video/gspca/vc032x.c
--- linux/drivers/media/video/gspca/vc032x.c	Mon Dec 08 10:41:04 2008 +0100
+++ linux/drivers/media/video/gspca/vc032x.c	Wed Dec 10 10:10:55 2008 +0100
@@ -1977,6 +1977,13 @@
 				data, len);
 		return;
 	}
+
+	/* The vc0321 sends some additional data after sending the complete
+	   frame, we ignore this. */
+	if (sd->bridge == BRIDGE_VC0321 && ((frame->data_end - frame->data)
+			+ len) > frame->v4l2_buf.length)
+		len = frame->v4l2_buf.length - (frame->data_end - frame->data);
+
 	gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len);
 }
 


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-9/kernel.spec,v
retrieving revision 1.876
retrieving revision 1.877
diff -u -r1.876 -r1.877
--- kernel.spec	10 Dec 2008 22:42:04 -0000	1.876
+++ kernel.spec	12 Dec 2008 00:06:43 -0000	1.877
@@ -681,6 +681,7 @@
 
 Patch900: linux-2.6-uvc-hg.patch
 Patch901: linux-2.6-uvc-spca525.patch
+Patch902: linux-2.6-gspca-vc0321-fix-frame-overflow.patch
 
 #mm
 
@@ -1261,6 +1262,7 @@
 # update uvc to upstream, fix spca525
 ApplyPatch linux-2.6-uvc-hg.patch
 ApplyPatch linux-2.6-uvc-spca525.patch
+ApplyPatch linux-2.6-gspca-vc0321-fix-frame-overflow.patch
 
 # build id related enhancements
 ApplyPatch linux-2.6-default-mmf_dump_elf_headers.patch
@@ -1904,6 +1906,9 @@
 %kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL}.xen -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.xen.conf %{with_xen} xen
 
 %changelog
+* Thu Dec 11 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.27.8-64
+- Fix vc0321 based webcams (F10#474990)
+
 * Wed Dec 10 2008 Jarod Wilson <jarod at redhat.com> 2.6.27.8-63
 - Plug DMA memory leak in firewire drivers (F10#475156)
 




More information about the fedora-extras-commits mailing list