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

Commit 9fee3526 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: spcom: fix NULL pointer dereference"

parents 042970b4 aa61a893
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2086,7 +2086,7 @@ static int spcom_probe(struct platform_device *pdev)
	ret = spcom_register_chardev();
	if (ret) {
		pr_err("create character device failed.\n");
		goto fail_reg_chardev;
		goto fail_while_chardev_reg;
	}

	ret = spcom_parse_dt(np);
@@ -2104,6 +2104,7 @@ static int spcom_probe(struct platform_device *pdev)
fail_reg_chardev:
	pr_err("failed to init driver\n");
	spcom_unregister_chrdev();
fail_while_chardev_reg:
	kfree(dev);
	spcom_dev = NULL;