patch-2.1.120 linux/arch/m68k/mm/kmap.c

Next file: linux/arch/m68k/mm/memory.c
Previous file: linux/arch/m68k/mm/init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.119/linux/arch/m68k/mm/kmap.c linux/arch/m68k/mm/kmap.c
@@ -277,8 +277,11 @@
 	size = (size + KMAP_STEP - 1) & ~(KMAP_STEP-1);
 	
 	down( &kmap_sem );
-	if (!(kmap = kmap_get_region( size, memavailp == NULL )))
-		return( 0 );
+	kmap = kmap_get_region(size, memavailp == NULL);
+	if (!kmap) {
+		up(&kmap_sem);
+		return 0;
+	}
 	from = kmap->addr;
 	retaddr += from;
 	kmap->mapaddr = retaddr;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov