]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b6e95d4b17f5ec10067d35fb967cd72e6f8c390
tree06bbac19b2f8577bd738734cd63d49e255e8e2cb
parentb3cfefbbc47b27c1b38a179cabc448ec712eb07e
fuse: BUG_ON correction in fuse_dev_splice_write()

commit a16e6d0a7adf ("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: a16e6d0a7adf ("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