Log an error when there's not enough memory for the inode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27676 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
90b7764dc3
commit
4ed420362a
@ -438,8 +438,10 @@ status_t
|
||||
Stream::_LoadInode(off_t offset)
|
||||
{
|
||||
int32* inodeRef = (int32*)malloc(fVolume.BlockSize() + 4);
|
||||
if (inodeRef == NULL)
|
||||
if (inodeRef == NULL) {
|
||||
dprintf("Stream::_LoadInode(): Out of memory!\n");
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
fInode = (bfs_inode*)(inodeRef + 1);
|
||||
*inodeRef = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user