[kernel] r19197 - in dists/sid/linux/debian: . patches patches/features/all/wacom

Ben Hutchings benh at alioth.debian.org
Sun Jun 24 21:13:19 UTC 2012


Author: benh
Date: Sun Jun 24 21:13:18 2012
New Revision: 19197

Log:
wacom: Try to fix regressions in 3.2.18-1

Added:
   dists/sid/linux/debian/patches/features/all/wacom/0027-wacom-patch-for-testing.patch
Modified:
   dists/sid/linux/debian/changelog
   dists/sid/linux/debian/patches/features/all/wacom/0026-Input-wacom-return-proper-error-if-usb_get_extra_des.patch
   dists/sid/linux/debian/patches/series

Modified: dists/sid/linux/debian/changelog
==============================================================================
--- dists/sid/linux/debian/changelog	Sun Jun 24 19:31:27 2012	(r19196)
+++ dists/sid/linux/debian/changelog	Sun Jun 24 21:13:18 2012	(r19197)
@@ -16,6 +16,9 @@
       nic-shared-modules, pcmcia-modules
     - [powerpc,ppc64,x86] scsi-modules depends on ata-modules
     - [x86] nic-extra-modules depends on i2c-modules
+  * wacom: Fix crash when probing some MT devices (Closes: #678798)
+  * wacom: Revert addition of 0xE5 (MT device) support, which causes
+    regressions for other devices (Closes: #677164)
 
  -- Ben Hutchings <ben at decadent.org.uk>  Sat, 23 Jun 2012 20:19:15 +0100
 

Modified: dists/sid/linux/debian/patches/features/all/wacom/0026-Input-wacom-return-proper-error-if-usb_get_extra_des.patch
==============================================================================
--- dists/sid/linux/debian/patches/features/all/wacom/0026-Input-wacom-return-proper-error-if-usb_get_extra_des.patch	Sun Jun 24 19:31:27 2012	(r19196)
+++ dists/sid/linux/debian/patches/features/all/wacom/0026-Input-wacom-return-proper-error-if-usb_get_extra_des.patch	Sun Jun 24 21:13:18 2012	(r19197)
@@ -10,6 +10,8 @@
 
 Reviewed-by: Chris Bagwell <chris at cnpbagwell.com>
 Signed-off-by: Dmitry Torokhov <dtor at mail.ru>
+[bwh: Adjust context to apply without preceding
+ commit 1963518b9b1b8019d33b4b08deee6f873ffa2730]
 ---
  drivers/input/tablet/wacom_sys.c |   11 ++++++-----
  1 file changed, 6 insertions(+), 5 deletions(-)
@@ -19,8 +21,8 @@
 --- a/drivers/input/tablet/wacom_sys.c
 +++ b/drivers/input/tablet/wacom_sys.c
 @@ -517,11 +517,12 @@ static int wacom_retrieve_hid_descriptor(struct usb_interface *intf,
+ 	    (features->type != BAMBOO_PT))
  		goto out;
- 	}
  
 -	if (usb_get_extra_descriptor(interface, HID_DEVICET_HID, &hid_desc)) {
 -		if (usb_get_extra_descriptor(&interface->endpoint[0],
@@ -36,6 +38,3 @@
  			goto out;
  		}
  	}
--- 
-1.7.10
-

Added: dists/sid/linux/debian/patches/features/all/wacom/0027-wacom-patch-for-testing.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/sid/linux/debian/patches/features/all/wacom/0027-wacom-patch-for-testing.patch	Sun Jun 24 21:13:18 2012	(r19197)
@@ -0,0 +1,37 @@
+From: Ping Cheng <pingc at wacom.com>
+Date: Sun, 24 Jun 2012 09:48:03 -0500
+Subject: wacom: patch for testing
+Bug-Debian: http://bugs.debian.org/678798
+
+When rep_data was an array
+
+	unsigned char rep_data[2];
+
+spelling its address as &rep_data was perfectly valid, but now that
+it is dynamically allocated
+
+	unsigned char *rep_data = kmalloc(2, GFP_KERNEL);
+
+that expression returns a pointer to the pointer rather than to the
+array itself.  Regression introduced by commit f393ee2b814e (Input:
+wacom - retrieve maximum number of touch points, 2012-04-29).
+---
+ drivers/input/tablet/wacom_sys.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
+index cad5602d3ce4..6b1cd71ba320 100644
+--- a/drivers/input/tablet/wacom_sys.c
++++ b/drivers/input/tablet/wacom_sys.c
+@@ -216,7 +216,7 @@ static void wacom_retrieve_report_data(struct usb_interface *intf,
+ 
+ 		rep_data[0] = 12;
+ 		result = wacom_get_report(intf, WAC_HID_FEATURE_REPORT,
+-					  rep_data[0], &rep_data, 2,
++					  rep_data[0], rep_data, 2,
+ 					  WAC_MSG_RETRIES);
+ 
+ 		if (result >= 0 && rep_data[1] > 2)
+-- 
+1.7.11.rc3
+

Modified: dists/sid/linux/debian/patches/series
==============================================================================
--- dists/sid/linux/debian/patches/series	Sun Jun 24 19:31:27 2012	(r19196)
+++ dists/sid/linux/debian/patches/series	Sun Jun 24 21:13:18 2012	(r19197)
@@ -204,8 +204,11 @@
 features/all/wacom/0022-Input-wacom-add-Intuos5-Touch-Ring-LED-support.patch
 features/all/wacom/0023-Input-wacom-add-Intuos5-multitouch-sensor-support.patch
 features/all/wacom/0024-Input-wacom-retrieve-maximum-number-of-touch-points.patch
-features/all/wacom/0025-Input-wacom-add-0xE5-MT-device-support.patch
+# This caused a regression (#677164) and will need a further fix on top
+#features/all/wacom/0025-Input-wacom-add-0xE5-MT-device-support.patch
 features/all/wacom/0026-Input-wacom-return-proper-error-if-usb_get_extra_des.patch
+# Preliminary fix for another regression (#678798)
+features/all/wacom/0027-wacom-patch-for-testing.patch
 
 # Add support for Ralink RT5392/RF5372 chipset
 features/all/rt2x00-add-debug-message-for-new-chipset.patch



More information about the Kernel-svn-changes mailing list