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)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 20 Apr 2020 15:01:34 +0000 (17:01 +0200)
commit0e9fb6f17ad5b386b75451328975a07d7d953c6d
tree06bbac19b2f8577bd738734cd63d49e255e8e2cb
parenta5d8422cc9598b11054faf34772d9ce68ae204fd
fuse: BUG_ON correction in fuse_dev_splice_write()

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>
fs/fuse/dev.c