fuse: BUG_ON correction in fuse_dev_splice_write()
authorVasily Averin <vvs@virtuozzo.com>
Mon, 19 Aug 2019 06:53:50 +0000 (09:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:35 +0000 (17:48 +0200)
commit12770809fc02b6f6e038234a4ae5947710d8154c
treeb14ac7cffa2b13e7317eb4daa379eb61c8444eaa
parente4d94478e2d786d0ad2b1fafd170d3d65d9105b6
fuse: BUG_ON correction in fuse_dev_splice_write()

[ Upstream commit 0e9fb6f17ad5b386b75451328975a07d7d953c6d ]

commit 963545357202 ("fuse: reduce allocation size for splice_write")
changed size of bufs array, so BUG_ON which checks the index of the array
shold also be fixed.

[SzM: turn BUG_ON into WARN_ON]

Fixes: 963545357202 ("fuse: reduce allocation size for splice_write")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/fuse/dev.c