diff options
Diffstat (limited to 'drivers/block/md.c')
-rw-r--r-- | drivers/block/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/md.c b/drivers/block/md.c index 69ff1813b..684b47c1b 100644 --- a/drivers/block/md.c +++ b/drivers/block/md.c @@ -553,6 +553,8 @@ static int do_md_add (int minor, kdev_t dev) 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); |