diff options
author | Pankaj Raghav <pankydev8@gmail.com> | 2022-03-28 21:01:46 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-03-30 19:31:12 +0300 |
commit | 36363b1a37593bbdfb1bd31e67fc72fb05523c2b (patch) | |
tree | cfe6f0dd13d2f0a4b37f2c69bd6d5f05104eb359 /Kernel/kstdio.h | |
parent | 34db0dab414bf83ba4631538891ecbd07b08d5aa (diff) | |
download | serenity-36363b1a37593bbdfb1bd31e67fc72fb05523c2b.zip |
Kernel: Fix storage device read/write for request length < block size
The current implementation of read/write will fail in StorageDevice
when the request length is less than the block size of the underlying
device. Fix it by calculating the offset within a block for such cases
and using it for copying data from the bounce buffer.
Diffstat (limited to 'Kernel/kstdio.h')
0 files changed, 0 insertions, 0 deletions