patch-2.3.22 linux/drivers/block/md.c
Next file: linux/drivers/block/paride/pcd.c
Previous file: linux/arch/ppc/pmac_defconfig
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu Oct 14 14:22:08 1999
-  Orig file: 
v2.3.21/linux/drivers/block/md.c
-  Orig date: 
Thu Aug 12 10:16:28 1999
diff -u --recursive --new-file v2.3.21/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -553,6 +553,8 @@
 	   a better idea, please help ! */
   
 	realdev->inode=get_empty_inode ();
+	if (!realdev->inode)
+		return -ENOMEM;
 	realdev->inode->i_dev=dev; 	/* don't care about other fields */
 	insert_inode_hash (realdev->inode);
   
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)