summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorMarco Cutecchia <marco.cutecchia@outlook.it>2023-04-01 19:11:21 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2023-04-02 12:43:17 -0600
commit1b04c4369012b2d8b5c7d29526a0e00dd71c7742 (patch)
tree38c839b2630740db243137848884435b66d7e376 /Userland
parent7375beced3a1b323fe3bbfc46423e576ee401cbc (diff)
downloadserenity-1b04c4369012b2d8b5c7d29526a0e00dd71c7742.zip
Kernel: Initialize DiskCache's buffer before the dirty&clean lists
This commit fixes a kernel panic that happened when unmounting a disk due to an invalid memory access. This was because `DiskCache` initializes two linked lists that use an argument `KBuffer` as the storage for their elements. Since the member `KBuffer` was declared after the two lists, when `DiskCache`'s destructor was called, then `KBuffer`'s destructor was called before the ones of the two lists, causing a page fault in the kernel.
Diffstat (limited to 'Userland')
0 files changed, 0 insertions, 0 deletions