diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index d07771797707b5c2bd7fa6daef0c551999fec97b..d8ccb500872fa2eacd26a91c473ee02a131cea18 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -903,7 +903,7 @@ static int lineevent_create(struct gpio_device *gdev, void __user *ip) desc = &gdev->descs[offset]; ret = gpiod_request(desc, le->label); if (ret) - goto out_free_desc; + goto out_free_label; le->desc = desc; le->eflags = eflags;