aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/io-async.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-25 19:36:10 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-02-25 19:36:29 +0100
commitd0a59e67fedf760a02109f5c18281241c6caa654 (patch)
tree3a5f8466eeb3529da9cabdff42aa26adcaeebd02 /libdiskfs/io-async.c
parentffdd90522aacaf19914c673f15e50f52137ada75 (diff)
downloadhurd-d0a59e67fedf760a02109f5c18281241c6caa654.tar.gz
hurd-d0a59e67fedf760a02109f5c18281241c6caa654.tar.bz2
hurd-d0a59e67fedf760a02109f5c18281241c6caa654.zip
Fix store_read calls
store_read takes a look at the size to determine whether to fill the provided buffer or not. Even if providing a null buffer we should set the size to 0. * defpager/defpager.c (pager_read_page): Initialize nread to 0. * storeio/dev.c (buffered_rw): Initialize amount to 0. * fatfs/fat.c (fat_read_sblock): Initialize read to the size of the boot sector. Reuse it as such.
Diffstat (limited to 'libdiskfs/io-async.c')
0 files changed, 0 insertions, 0 deletions