Skip to contentSkip to conversation

pinctrl-use-krealloc_array.patch removed from -mm tree

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

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

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

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

------------------------------------------------------
From: Bartosz Golaszewski <[email protected]>
Subject: pinctrl: 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 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 "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/pinctrl/pinctrl-utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-utils.c renamed from drivers/pinctrl/pinctrl-utils.c~pinctrl-use-krealloc_array +1 -1
@@ -39,7 +39,7 @@ int pinctrl_utils_reserve_map(struct pin
 	if (old_num >= new_num)
 		return 0;
 
-	new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL);
+	new_map = krealloc_array(*map, new_num, sizeof(*new_map), GFP_KERNEL);
 	if (!new_map) {
 		dev_err(pctldev->dev, "krealloc(map) failed\n");
 		return -ENOMEM;

_

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