vhost-vringh-use-krealloc_array.patch removed from -mm tree
The patch titled
Subject: vhost: vringh: use krealloc_array()
has been removed from the -mm tree. Its filename was
vhost-vringh-use-krealloc_array.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Bartosz Golaszewski <[email protected]>
Subject: vhost: vringh: use krealloc_array()
Use the helper that checks for overflows internally instead of manually calculating the size of the new array.
Signed-off-by Bartosz Golaszewski <[email protected]>
Cc Alexander Shishkin <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Christian Knig <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc David Airlie <[email protected]>
Cc David Rientjes <[email protected]>
Cc Gustavo Padovan <[email protected]>
Cc James Morse <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Jason Wang <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Maxime Ripard <[email protected]>
Cc Pekka Enberg <[email protected]>
Cc Robert Richter <[email protected]>
Cc Sumit Semwal <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Thomas Zimmermann <[email protected]>
Cc Tony Luck <[email protected]>
Cc Vlastimil Babka <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/vhost/vringh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/vhost/vringh.c renamed from drivers/vhost/vringh.c~vhost-vringh-use-krealloc_array +2 -1
@@ -198,7 +198,8 @@ static int resize_iovec(struct vringh_ki flag = (iov->max_num &VRINGH_IOV_ALLOCATED );if (flag) - new =krealloc (iov->iov, new_num *sizeof (struct iovec ), gfp); + new =krealloc_array (iov->iov, new_num, +sizeof (struct iovec ), gfp);else { new =kmalloc_array (new_num,sizeof (struct iovec ), gfp);if (new) {
_
Patches currently in -mm which might be from [email protected] are