diff options
author | Trond Myklebust <[email protected]> | 2023-11-17 06:25:13 -0500 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2024-01-04 10:47:56 -0500 |
commit | 8a6291bf3b0eae1bf26621e6419a91682f2d6227 (patch) | |
tree | 59ba7682028c67f251269f84b05866659896597f /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | f6e70c59edee4203e9541e790e8c416a9250f190 (diff) |
pNFS: Fix the pnfs block driver's calculation of layoutget size
Instead of relying on the value of the 'bytes_left' field, we should
calculate the layout size based on the offset of the request that is
being written out.
Reported-by: Benjamin Coddington <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Fixes: 954998b60caa ("NFS: Fix error handling for O_DIRECT write scheduling")
Reviewed-by: Benjamin Coddington <[email protected]>
Tested-by: Benjamin Coddington <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions