patch-2.3.41 linux/drivers/sbus/char/jsflash.c

Next file: linux/drivers/sbus/char/uctrl.c
Previous file: linux/drivers/sbus/char/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/drivers/sbus/char/jsflash.c linux/drivers/sbus/char/jsflash.c
@@ -191,12 +191,21 @@
 	}
 
 	if (p < JSF_BASE_ALL && togo != 0) {
+#if 0 /* __bzero XXX */
 		size_t x = JSF_BASE_ALL - p;
 		if (x > togo) x = togo;
 		clear_user(tmp, x);
 		tmp += x;
 		p += x;
 		togo -= x;
+#else
+		/*
+		 * Implementation of clear_user() calls __bzero
+		 * without regard to modversions,
+		 * so we cannot build a module.
+		 */
+		return 0;
+#endif
 	}
 
 	while (togo >= 4) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)