r4277 - in dists: sid/linux-2.6/debian/patches-debian trunk/linux-2.6/debian/patches-debian

Sven Luther luther at costa.debian.org
Sun Sep 25 19:55:19 UTC 2005


Author: luther
Date: 2005-09-25 19:55:18 +0000 (Sun, 25 Sep 2005)
New Revision: 4277

Modified:
   dists/sid/linux-2.6/debian/patches-debian/powerpc-apus.patch
   dists/trunk/linux-2.6/debian/patches-debian/powerpc-apus.patch
Log:
Added dmasound_paula.c apus patch.


Modified: dists/sid/linux-2.6/debian/patches-debian/powerpc-apus.patch
===================================================================
--- dists/sid/linux-2.6/debian/patches-debian/powerpc-apus.patch	2005-09-25 19:19:14 UTC (rev 4276)
+++ dists/sid/linux-2.6/debian/patches-debian/powerpc-apus.patch	2005-09-25 19:55:18 UTC (rev 4277)
@@ -3017,3 +3017,37 @@
  
  #endif /* __KERNEL__ */
 +#endif /* _PPC_IO_H */
+--- linux-2.6.13/sound/oss/dmasound/dmasound_paula.c	2005-08-29 01:41:01.000000000 +0200
++++ linux-2.6.13-apus/sound/oss/dmasound/dmasound_paula.c	2005-09-25 21:50:11.000000000 +0200
+@@ -244,6 +244,7 @@
+ 			u_char frame[], ssize_t *frameUsed,		\
+ 			ssize_t frameLeft)				\
+ {									\
++	const u_short *ptr = (const u_short *)userPtr;			\
+ 	ssize_t count, used;						\
+ 	u_short data;							\
+ 									\
+@@ -253,7 +254,7 @@
+ 		count = min_t(size_t, userCount, frameLeft)>>1 & ~1;	\
+ 		used = count*2;						\
+ 		while (count > 0) {					\
+-			if (get_user(data, ((u_short *)userPtr)++))	\
++			if (get_user(data, ptr++))			\
+ 				return -EFAULT;				\
+ 			data = convsample(data);			\
+ 			*high++ = data>>8;				\
+@@ -268,12 +269,12 @@
+ 		count = min_t(size_t, userCount, frameLeft)>>2 & ~1;	\
+ 		used = count*4;						\
+ 		while (count > 0) {					\
+-			if (get_user(data, ((u_short *)userPtr)++))	\
++			if (get_user(data, ptr++))			\
+ 				return -EFAULT;				\
+ 			data = convsample(data);			\
+ 			*lefth++ = data>>8;				\
+ 			*leftl++ = (data>>2) & 0x3f;			\
+-			if (get_user(data, ((u_short *)userPtr)++))	\
++			if (get_user(data, ptr++))			\
+ 				return -EFAULT;				\
+ 			data = convsample(data);			\
+ 			*righth++ = data>>8;				\

Modified: dists/trunk/linux-2.6/debian/patches-debian/powerpc-apus.patch
===================================================================
--- dists/trunk/linux-2.6/debian/patches-debian/powerpc-apus.patch	2005-09-25 19:19:14 UTC (rev 4276)
+++ dists/trunk/linux-2.6/debian/patches-debian/powerpc-apus.patch	2005-09-25 19:55:18 UTC (rev 4277)
@@ -3030,3 +3030,37 @@
  #undef inb_p
  #undef inw_p
  #undef outb_p
+--- linux-2.6.13/sound/oss/dmasound/dmasound_paula.c	2005-08-29 01:41:01.000000000 +0200
++++ linux-2.6.13-apus/sound/oss/dmasound/dmasound_paula.c	2005-09-25 21:50:11.000000000 +0200
+@@ -244,6 +244,7 @@
+ 			u_char frame[], ssize_t *frameUsed,		\
+ 			ssize_t frameLeft)				\
+ {									\
++	const u_short *ptr = (const u_short *)userPtr;			\
+ 	ssize_t count, used;						\
+ 	u_short data;							\
+ 									\
+@@ -253,7 +254,7 @@
+ 		count = min_t(size_t, userCount, frameLeft)>>1 & ~1;	\
+ 		used = count*2;						\
+ 		while (count > 0) {					\
+-			if (get_user(data, ((u_short *)userPtr)++))	\
++			if (get_user(data, ptr++))			\
+ 				return -EFAULT;				\
+ 			data = convsample(data);			\
+ 			*high++ = data>>8;				\
+@@ -268,12 +269,12 @@
+ 		count = min_t(size_t, userCount, frameLeft)>>2 & ~1;	\
+ 		used = count*4;						\
+ 		while (count > 0) {					\
+-			if (get_user(data, ((u_short *)userPtr)++))	\
++			if (get_user(data, ptr++))			\
+ 				return -EFAULT;				\
+ 			data = convsample(data);			\
+ 			*lefth++ = data>>8;				\
+ 			*leftl++ = (data>>2) & 0x3f;			\
+-			if (get_user(data, ((u_short *)userPtr)++))	\
++			if (get_user(data, ptr++))			\
+ 				return -EFAULT;				\
+ 			data = convsample(data);			\
+ 			*righth++ = data>>8;				\




More information about the Kernel-svn-changes mailing list