aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMarek VaĊĦut <[email protected]>2010-05-26 23:53:09 +0100
committerRussell King <[email protected]>2010-05-27 10:36:08 +0100
commit3defb2476166445982a90c12d33f8947e75476c4 (patch)
treefb5b7b157f741cf2cfcc7436c5d70bd5ae7f53a7 /net/unix/sysctl_net_unix.c
parentba327b1e5296b70745e50bcf0446ae8f82e3d478 (diff)
ARM: 6146/1: sa1111: Prevent deadlock in resume path
This patch reorganises the sa1111_resume() function in a manner the spinlock happens after calling the sa1111_wake(). This fixes two bugs: 1) This function called sa1111_wake() which tried to claim the same spinlock the sa1111_resume() already claimed. This would result in certain deadlock. Original idea for this part: Russell King <[email protected]> 2) The function didn't unlock the spinlock in case the chip didn't report correct ID. Original idea for this part: Julia Lawall <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Cc: <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions