[PATCH] fs/fat.c: Do not perform zero block reads if there are no blocks left

2020-06-19 Thread Jason Wessel
While using u-boot with qemu's virtio driver I stumbled across a problem reading files less than sector size. On the real hardware the block reader seems ok with reading zero blocks, and while we could fix the virtio host side of qemu to deal with a zero block read instead of crashing, the u-boot

[PATCH] fs/fat.c: Do not perform zero block reads if there are no blocks left

2020-06-19 Thread Jason Wessel
While using u-boot with qemu's virtio driver I stumbled across a problem reading files less than sector size. On the real hardware the block reader seems ok with reading zero blocks, and while we could fix the virtio host side of qemu to deal with a zero block read instead of crashing, the u-boot