Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: pinconf: take the right mutex

The pinconf_dgb_config_print() takes the per-pincontroller
mutex, when what it wants to take is actually the pin maps
mutex.

Reported-by: James Hogan <james.hogan@imgtec.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+2 -2
+2 -2
drivers/pinctrl/pinconf.c
··· 610 610 bool found = false; 611 611 unsigned long config; 612 612 613 - mutex_lock(&pctldev->mutex); 613 + mutex_lock(&pinctrl_maps_mutex); 614 614 615 615 /* Parse the pinctrl map and look for the elected pin/state */ 616 616 for_each_maps(maps_node, i, map) { ··· 659 659 confops->pin_config_config_dbg_show(pctldev, s, config); 660 660 661 661 exit: 662 - mutex_unlock(&pctldev->mutex); 662 + mutex_unlock(&pinctrl_maps_mutex); 663 663 664 664 return 0; 665 665 }