]> git.baikalelectronics.ru Git - kernel.git/commit
pipe: Fix iteration end check in fuse_dev_splice_write()
authorDavid Howells <dhowells@redhat.com>
Fri, 6 Dec 2019 21:34:51 +0000 (21:34 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Dec 2019 21:57:04 +0000 (13:57 -0800)
commit1b296e87ce6dd01fdb39abefcaeda0528ffe42e2
treed6383685fe462de7eb3007541ee2e26a03b2927d
parent04099e3080935e5a4616276fea04329a6156de89
pipe: Fix iteration end check in fuse_dev_splice_write()

Fix the iteration end check in fuse_dev_splice_write().  The iterator
position can only be compared with == or != since wrappage may be involved.

Fixes: eb9e4cb12ab3 ("pipe: Use head and tail pointers for the ring, not cursor and length")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/dev.c