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:
@@ -438,8 +438,10 @@ status_t
|
|||||||
Stream::_LoadInode(off_t offset)
|
Stream::_LoadInode(off_t offset)
|
||||||
{
|
{
|
||||||
int32* inodeRef = (int32*)malloc(fVolume.BlockSize() + 4);
|
int32* inodeRef = (int32*)malloc(fVolume.BlockSize() + 4);
|
||||||
if (inodeRef == NULL)
|
if (inodeRef == NULL) {
|
||||||
|
dprintf("Stream::_LoadInode(): Out of memory!\n");
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
}
|
||||||
|
|
||||||
fInode = (bfs_inode*)(inodeRef + 1);
|
fInode = (bfs_inode*)(inodeRef + 1);
|
||||||
*inodeRef = 1;
|
*inodeRef = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user