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
- Lines: 14
- Date:
Wed Sep 2 09:39:18 1998
- Orig file:
v2.1.119/linux/arch/m68k/mm/kmap.c
- Orig date:
Mon Aug 3 12:45:44 1998
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