Re: [PATCH v2] gpio: gpiolib: clear the array_info's memory space
From: andy . shevchenko
Date: Wed Apr 26 2023 - 10:42:46 EST
Sun, Apr 23, 2023 at 09:59:43PM +0800, Yan Wang kirjoitti:
> if hardware number different to array index,it needs to clear to points
> memory space if the array_info have been assigned a value.
Can you explain a bit more what's going on there?
...
> if (bitmap_full(array_info->get_mask, descs->ndescs)) {
> + /*clear descs->info*/
> + memset(array_info, 0, sizeof(struct gpio_array));
> array_info = NULL;
...
> }
--
With Best Regards,
Andy Shevchenko