diff options
| author | Xiubo Li <[email protected]> | 2021-10-30 05:16:40 +0000 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2021-11-08 02:29:52 +0000 |
| commit | c3d8e0b5de487a7c462781745bc17694a4266696 (patch) | |
| tree | 34dd29f9ea47d17e0a11b3213c51e1be3e67f603 /drivers/fpga/fpga-bridge.c | |
| parent | ceph: properly handle statfs on multifs setups (diff) | |
| download | kernel-c3d8e0b5de487a7c462781745bc17694a4266696.tar.gz kernel-c3d8e0b5de487a7c462781745bc17694a4266696.zip | |
ceph: return the real size read when it hits EOF
Currently, if the sync read handler ends up reading more from the last
object in the file than the i_size indicates, then it'll end up
returning the wrong length. Ensure that we cap the returned length and
pos at the EOF.
Signed-off-by: Xiubo Li <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
