* 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:
parent
c709a396cf
commit
3c50a64697
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue