aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2020-11-14 17:27:57 +0000
committerLinus Torvalds <[email protected]>2020-11-14 11:51:18 -0800
commit3ad216ee73abc554ed8f13f4f8b70845a7bef6da (patch)
tree7c211765eff4950a262064f52a6831b960d61569 /tools/testing/selftests/bpf
parentf01c30de86f1047e9bae1b1b1417b0ce8dcd15b1 (diff)
afs: Fix afs_write_end() when called with copied == 0 [ver #3]
When afs_write_end() is called with copied == 0, it tries to set the dirty region, but there's no way to actually encode a 0-length region in the encoding in page->private. "0,0", for example, indicates a 1-byte region at offset 0. The maths miscalculates this and sets it incorrectly. Fix it to just do nothing but unlock and put the page in this case. We don't actually need to mark the page dirty as nothing presumably changed. Fixes: 65dd2d6072d3 ("afs: Alter dirty range encoding in page->private") Signed-off-by: David Howells <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf')
0 files changed, 0 insertions, 0 deletions