aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-max3191x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-max3191x.c')
-rw-r--r--drivers/gpio/gpio-max3191x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-max3191x.c b/drivers/gpio/gpio-max3191x.c
index 310d1a248cae..51cd6f98d1c7 100644
--- a/drivers/gpio/gpio-max3191x.c
+++ b/drivers/gpio/gpio-max3191x.c
@@ -326,7 +326,7 @@ static void gpiod_set_array_single_value_cansleep(unsigned int ndescs,
bitmap_zero(values, ndescs);
gpiod_set_array_value_cansleep(ndescs, desc, info, values);
- kfree(values);
+ bitmap_free(values);
}
static struct gpio_descs *devm_gpiod_get_array_optional_count(