Even more correct return value.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20856 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
93ed453113
commit
5b1cb74b86
@ -1071,7 +1071,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 B_ERROR;
|
||||
return B_BAD_VALUE;
|
||||
}
|
||||
|
||||
BenaphoreLocker locker(&cache->lock);
|
||||
|
2
src/system/kernel/cache/block_cache.cpp
vendored
2
src/system/kernel/cache/block_cache.cpp
vendored
@ -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 B_ERROR;
|
||||
return B_BAD_VALUE;
|
||||
}
|
||||
|
||||
BenaphoreLocker locker(&cache->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user