summaryrefslogtreecommitdiff
path: root/ipc/sem.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2015-06-30 21:58:36 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 02:44:58 (GMT)
commitc5c8975b2eb4eb7604e8ce4f762987f56d2a96a2 (patch)
tree9f21ef2539c3c0110dde47e1fc6b56c50da8b507 /ipc/sem.c
parentc859aa83113dcad165d986e66aa21c5b73745f42 (diff)
downloadlinux-c5c8975b2eb4eb7604e8ce4f762987f56d2a96a2.tar.xz
ipc,shm: move BUG_ON check into shm_lock
Upon every shm_lock call, we BUG_ON if an error was returned, indicating racing either in idr or in shm_destroy. Move this logic into the locking. [akpm@linux-foundation.org: simplify code] Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Cc: Manfred Spraul <manfred@colorfullife.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/sem.c')
0 files changed, 0 insertions, 0 deletions