summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-11 16:09:20 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-11 16:09:20 -0800
commitfa6e49a2497cb4298d81c0d384c1ade8bcf1f0a3 (patch)
treef57b43daf2a64a79d39d9c76ca6f8474ed8052b9 /net/lapb/lapb_iface.c
parent749e1c8ba98f98b5657e713b10e743581b5d32b2 (diff)
Handle two threads both trying to expand their stack simultaneously.
We had all the locking right, but we didn't check whether one of the threads now no longer needed to expand, so we could incorrectly _shrink_ the stack in the other thread instead (not only causing segfaults, but since we didn't do a proper unmap, we'd possibly leak pages too). So re-check the need for expand after getting the lock. Noticed by Paul Starzetz.
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions