Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3830711f authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files
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
parents 5aebc7d2 19a4fbff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -571,7 +571,7 @@ static int linehandle_create(struct gpio_device *gdev, void __user *ip)
		if (ret)
			goto out_free_descs;
		lh->descs[i] = desc;
		count = i;
		count = i + 1;

		if (lflags & GPIOHANDLE_REQUEST_ACTIVE_LOW)
			set_bit(FLAG_ACTIVE_LOW, &desc->flags);