* Inode::Create() should also better check if creating the file cache succeeded.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35273 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-01-24 13:05:19 +00:00
parent c709a396cf
commit 3c50a64697
1 changed files with 3 additions and 0 deletions

View File

@ -2679,6 +2679,9 @@ Inode::Create(Transaction& transaction, Inode* parent, const char* name,
inode->Size()));
inode->SetMap(file_map_create(volume->ID(), inode->ID(),
inode->Size()));
if (inode->FileCache() == NULL || inode->Map() == NULL)
return B_NO_MEMORY;
}
// Everything worked well until this point, we have a fully