aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorNadia Derbey <[email protected]>2008-11-19 15:36:08 -0800
committerLinus Torvalds <[email protected]>2008-11-19 18:49:57 -0800
commite00b4ff7ebf098b11b11be403921c1cf41d9e321 (patch)
treeca0b085b803128efea92ab98723adcefb35556fc /net/lapb/lapb_iface.c
parentcf7b9a1e11993a064f445d332fecf22819b87a5e (diff)
sysvipc: fix the ipc structures initialization
A problem was found while reviewing the code after Bugzilla bug http://bugzilla.kernel.org/show_bug.cgi?id=11796. In ipc_addid(), the newly allocated ipc structure is inserted into the ipcs tree (i.e made visible to readers) without locking it. This is not correct since its initialization continues after it has been inserted in the tree. This patch moves the ipc structure lock initialization + locking before the actual insertion. Signed-off-by: Nadia Derbey <[email protected]> Reported-by: Clement Calmels <[email protected]> Cc: Manfred Spraul <[email protected]> Cc: <[email protected]> [2.6.27.x] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions