]> git.baikalelectronics.ru Git - kernel.git/commit
ipc/shm: remove special shm_alloc/free
authorKees Cook <keescook@chromium.org>
Wed, 12 Jul 2017 21:35:25 +0000 (14:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Jul 2017 23:26:02 +0000 (16:26 -0700)
commit2e221aac05c6c049d866ce85fc71ad1382b03801
treeb473212b03b2c689aef6aa27beee310fdd15824c
parent502a4e592c459f2f422619460c1d89e6fbbb6f93
ipc/shm: remove special shm_alloc/free

There is nothing special about the shm_alloc/free routines any more, so
remove them to make code more readable.

[manfred@colorfullife.com: Rediff, to continue to keep rcu for free calls after a successful security_shm_alloc()]
Link: http://lkml.kernel.org/r/20170525185107.12869-18-manfred@colorfullife.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: 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>
ipc/shm.c