aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorTero Kristo <[email protected]>2012-09-25 19:05:32 +0300
committerTony Lindgren <[email protected]>2012-10-17 09:00:31 -0700
commit64e29fd5ed42f5d0ff5b0ea9395b3abd5d43f89b (patch)
tree2d1a162662e2279f03d17de9b2e33c5d6cb8ca54 /net/unix/sysctl_net_unix.c
parent49c58e82023649924b1b0f38d715d94093f4044b (diff)
ARM: OMAP: clockdomain: Fix locking on _clkdm_clk_hwmod_enable / disable
Previously the code only acquired spinlock after increasing / decreasing the usecount value, which is wrong. This leaves a small window where a task switch may occur between the check of the usecount and the actual wakeup / sleep of the domain. Fixed by moving the spinlock locking before the usecount access. Left the usecount as atomic_t if someone wants an easy access to the parameter through atomic_read. Signed-off-by: Tero Kristo <[email protected]> Acked-by: Paul Walmsley <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions