search for: 248c8f46b51c

Displaying 1 result from an estimated 1 matches for "248c8f46b51c".

2020 Jul 30
0
[PATCH] virtio-blk: fix discard buffer overrun
...> Reviewed-by: Joseph Qi <joseph.qi at linux.alibaba.com> > --- > drivers/block/virtio_blk.c | 23 ++++++++++++++++++----- > 1 file changed, 18 insertions(+), 5 deletions(-) > > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c > index 980df853ee49..248c8f46b51c 100644 > --- a/drivers/block/virtio_blk.c > +++ b/drivers/block/virtio_blk.c > @@ -130,12 +130,19 @@ static int virtblk_setup_discard_write_zeroes(struct request *req, bool unmap) > u64 sector = bio->bi_iter.bi_sector; > u32 num_sectors = bio->bi_iter.bi_size >> S...