-- Content-Disposition: inline; filename=net-ehea-correct-locking-order.patch Nested locks always need to be taken in the same order. This change factors out the ehea_fw_handles.lock to make the locking order consistent. Signed-off-by: Daniel Walker <dwalker@mvista.com> --- drivers/net/ehea/ehea_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6.24/drivers/net/ehea/ehea_main.c =================================================================== --- linux-2.6.24.orig/drivers/net/ehea/ehea_main.c +++ linux-2.6.24/drivers/net/ehea/ehea_main.c @@ -2567,14 +2567,14 @@ static int ehea_down(struct net_device * if (port->state == EHEA_PORT_DOWN) return 0; + mutex_lock(&ehea_fw_handles.lock); + down(&ehea_bcmc_regs.lock); ehea_drop_multicast_list(dev); ehea_broadcast_reg_helper(port, H_DEREG_BCMC); ehea_free_interrupts(dev); - mutex_lock(&ehea_fw_handles.lock); - port->state = EHEA_PORT_DOWN; ehea_update_bcmc_registrations(); -- --
| Linus Torvalds | Linux 2.6.27-rc8 |
| Jeff Chua | 2.6.27rc1 cannot boot more than 8CPUs |
| Yinghai Lu | Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor... |
| Russell King | Re: (hacky) [PATCH] silence MODPOST section mismatch warnings |
git: | |
| Steffen Prohaska | merge vs rebase: Is visualization in gitk the only problem? |
| Shawn O. Pearce | Re: clarify git clone --local --shared --reference |
| Wink Saville | Resolving conflicts |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Richard Stallman | Real men don't attack straw men |
| Kevin Neff | Patching a SSH 'Weakness' |
| Mayuresh Kathe | Re: What is our ultimate goal?? |
| Jonathan Thornburg | strlcat/strlcpy vs overlapping arguments |
| Stefan Richter | Re: [GIT]: Networking |
| adobriyan | [PATCH 10/38] netns ct: per-netns expectations |
| "G" | Implementing RSTP and MSTP in Linux Kernel |
| Arnaldo Carvalho de Melo | Re: [PATCH 2/6] Phonet: connected sockets glue |
