Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'gpio-v4.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio

Linus writes:
"A single GPIO fix:
Free the last used descriptor, an off by one error.
This is tagged for stable as well."

* tag 'gpio-v4.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
gpiolib: Free the last requested descriptor

+1 -1
+1 -1
drivers/gpio/gpiolib.c
··· 571 571 if (ret) 572 572 goto out_free_descs; 573 573 lh->descs[i] = desc; 574 - count = i; 574 + count = i + 1; 575 575 576 576 if (lflags & GPIOHANDLE_REQUEST_ACTIVE_LOW) 577 577 set_bit(FLAG_ACTIVE_LOW, &desc->flags);