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

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

Merge "icnss: Avoid wlan driver unload if driver is not probed"

parents 8ef7c91c 90653a6f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1859,8 +1859,8 @@ int icnss_unregister_driver(struct icnss_driver_ops *ops)

	icnss_pr_dbg("Unregistering driver, state: 0x%lx\n", penv->state);

	if (!penv->ops) {
		icnss_pr_err("Driver not registered\n");
	if (!penv->ops || (!test_bit(ICNSS_DRIVER_PROBED, &penv->state))) {
		icnss_pr_err("Driver not registered/probed\n");
		ret = -ENOENT;
		goto out;
	}