Unverified Commit da87ba0f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10390 pinctrl: fix deadlock in create_pinctrl() when handling -EPROBE_DEFER

parents 9b16d54a 867d18b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1084,8 +1084,8 @@ static struct pinctrl *create_pinctrl(struct device *dev,
		 * an -EPROBE_DEFER later, as that is the worst case.
		 */
		if (ret == -EPROBE_DEFER) {
			pinctrl_free(p, false);
			mutex_unlock(&pinctrl_maps_mutex);
			pinctrl_free(p, false);
			return ERR_PTR(ret);
		}
	}