From f4e5c34143550174c8b36c5509e40b4350d10b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 30 May 2005 16:54:08 +0000 Subject: [PATCH] cache_abort_transaction() freed the wrong block, and thus causing a file system corruption even better than during its absence. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12903 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/cache/block_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/cache/block_cache.cpp b/src/system/kernel/cache/block_cache.cpp index eed587ac4b..38f74f871a 100644 --- a/src/system/kernel/cache/block_cache.cpp +++ b/src/system/kernel/cache/block_cache.cpp @@ -619,7 +619,7 @@ cache_abort_transaction(void *_cache, int32 id) TRACE(("cache_abort_transaction(id = %ld): restored contents of block %Ld\n", transaction->id, block->block_number)); memcpy(block->data, block->original, cache->block_size); - cache->allocator->Put(block->data); + cache->allocator->Put(block->original); block->original = NULL; }