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

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)