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

Commit 633e0fa5 authored by Daniel Willerud's avatar Daniel Willerud Committed by Samuel Ortiz
Browse files

mfd: Free dangling irq in ab8500 gpadc probe error path

parent 6321992c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -267,11 +267,13 @@ static int __devinit ab8500_gpadc_probe(struct platform_device *pdev)
	if (IS_ERR(gpadc->regu)) {
		ret = PTR_ERR(gpadc->regu);
		dev_err(gpadc->dev, "failed to get vtvout LDO\n");
		goto fail;
		goto fail_irq;
	}
	list_add_tail(&gpadc->node, &ab8500_gpadc_list);
	dev_dbg(gpadc->dev, "probe success\n");
	return 0;
fail_irq:
	free_irq(gpadc->irq, gpadc);
fail:
	kfree(gpadc);
	gpadc = NULL;