patch-2.2.11 linux/fs/isofs/namei.c

Next file: linux/fs/lockd/clntlock.c
Previous file: linux/fs/ioctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.10/linux/fs/isofs/namei.c linux/fs/isofs/namei.c
@@ -147,6 +147,8 @@
 			
 			de = (struct iso_directory_record *)
 				kmalloc(offset - old_offset, GFP_KERNEL);
+			if(de==NULL)
+				break;
 			memcpy((char *)de, bh->b_data + old_offset, 
 			       bufsize - old_offset);
 			memcpy((char *)de + bufsize - old_offset,

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