patch-2.4.22 linux-2.4.22/arch/sparc/kernel/signal.c

Next file: linux-2.4.22/arch/sparc/kernel/sys_sparc.c
Previous file: linux-2.4.22/arch/sparc/config.in
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/sparc/kernel/signal.c linux-2.4.22/arch/sparc/kernel/signal.c
@@ -1131,6 +1131,8 @@
 			line = d_path(map->vm_file->f_dentry,
 				      map->vm_file->f_vfsmnt,
 				      buffer, PAGE_SIZE);
+			if (IS_ERR(line))
+				break;
 		}
 		printk(MAPS_LINE_FORMAT, map->vm_start, map->vm_end, str, map->vm_pgoff << PAGE_SHIFT,
 			      kdevname(dev), ino);

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