Skip to contentSkip to conversation

dma-buf-use-krealloc_array.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: dma-buf: use krealloc_array()
has been removed from the -mm tree. Its filename was
dma-buf-use-krealloc_array.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Bartosz Golaszewski <[email protected]>
Subject: dma-buf: use krealloc_array()

Use the helper that checks for overflows internally instead of manually calculating the size of the new array.

Cc Alexander Shishkin <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Borislav Petkov <[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 "Michael S . Tsirkin" <[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]>

---

 drivers/dma-buf/sync_file.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/dma-buf/sync_file.c renamed from drivers/dma-buf/sync_file.c~dma-buf-use-krealloc_array +1 -2
@@ -270,8 +270,7 @@ static struct sync_file *sync_file_merge
 		fences[i++] = dma_fence_get(a_fences[0]);
 
 	if (num_fences > i) {
-		nfences = krealloc(fences, i * sizeof(*fences),
-				  GFP_KERNEL);
+		nfences = krealloc_array(fences, i, sizeof(*fences), GFP_KERNEL);
 		if (!nfences)
 			goto err;
 

_

Patches currently in -mm which might be from [email protected] are