More correct return value.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20855 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1
-1
@@ -1182,7 +1182,7 @@ block_cache_sync_etc(void *_cache, off_t blockNumber, size_t numBlocks)
|
||||
if (blockNumber < 0 || blockNumber >= cache->max_blocks) {
|
||||
panic("block_cache_sync_etc: invalid block number %Ld (max %Ld)",
|
||||
blockNumber, cache->max_blocks - 1);
|
||||
return NULL;
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
BenaphoreLocker locker(&cache->lock);
|
||||
|
||||
Reference in New Issue
Block a user