patch-1.3.29 linux/drivers/sound/soundcard.c
Next file: linux/fs/binfmt_elf.c
Previous file: linux/drivers/scsi/st_options.h
Back to the patch index
Back to the overall index
-  Lines: 13
 -  Date:
Tue Sep 19 12:13:46 1995
 -  Orig file: 
v1.3.28/linux/drivers/sound/soundcard.c
 -  Orig date: 
Mon Sep 18 14:54:04 1995
 
diff -u --recursive --new-file v1.3.28/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -618,10 +618,10 @@
 
 	    for (i = MAP_NR (start_addr); i <= MAP_NR (end_addr); i++)
 	      {
-		if (mem_map[i])
+		if (mem_map[i].reserved || mem_map[i].count)
 		  panic ("sound_mem_init: Page not free (driver incompatible with kernel).\n");
 
-		mem_map[i] = MAP_PAGE_RESERVED;
+		mem_map[i].reserved = 1;
 	      }
 	  }
       }				/* for dev */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this