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

Commit a8d9a534 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: pil: Unregister modem notifer on failure to create kobj"

parents 5f5a902f fc5a13d6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -479,7 +479,7 @@ static int pil_lpass_driver_probe(struct platform_device *pdev)
	if (!lpass_status) {
		pr_err("%s: kobject create failed\n", __func__);
		ret = -ENOMEM;
		goto err_notif_modem;
		goto err_create_kobj;
	}

	ret = sysfs_create_group(lpass_status, &attr_group);
@@ -492,6 +492,8 @@ static int pil_lpass_driver_probe(struct platform_device *pdev)
	return 0;
err_kobj:
	kobject_put(lpass_status);
err_create_kobj:
	subsys_notif_unregister_notifier(drv->modem_notif_hdle, &mnb);
err_notif_modem:
	subsys_notif_unregister_notifier(drv->wcnss_notif_hdle, &wnb);
err_notif_wcnss: