patch-2.2.18 linux/drivers/char/rio/linux_compat.h
Next file: linux/drivers/char/rio/rio_linux.c
Previous file: linux/drivers/char/radio-maestro.c
Back to the patch index
Back to the overall index
-  Lines: 15
 -  Date:
Sat Oct 28 11:22:06 2000
 -  Orig file: 
v2.2.17/drivers/char/rio/linux_compat.h
 -  Orig date: 
Sat Sep  9 18:42:35 2000
 
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/char/rio/linux_compat.h linux/drivers/char/rio/linux_compat.h
@@ -16,11 +16,13 @@
  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include <asm/hardirq.h>
+
 
 #define disable(oldspl) save_flags (oldspl)
 #define restore(oldspl) restore_flags (oldspl)
 
-#define sysbrk(x) kmalloc ((x), GFP_KERNEL)
+#define sysbrk(x) kmalloc ((x),in_interrupt()? GFP_ATOMIC : GFP_KERNEL)
 #define sysfree(p,size) kfree ((p))
 
 #define WBYTE(p,v) writeb(v, &p)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)