]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipc: drop non-RCU allocation
authorKees Cook <keescook@chromium.org>
Wed, 12 Jul 2017 21:34:47 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Jul 2017 23:26:01 +0000 (16:26 -0700)
commitf8dbe8d290637ac3f68600e30d092393fe9b40a5
tree20108014c81821082abd938b2c95f4d6a23655e3
parent2cd648c110b5570c3280bd645797658cabbe5f5c
ipc: drop non-RCU allocation

The only users of ipc_alloc() were ipc_rcu_alloc() and the on-heap
sem_io fall-back memory.  Better to just open-code these to make things
easier to read.

[manfred@colorfullife.com: Rediff due to inclusion of memset() into ipc_rcu_alloc()]
Link: http://lkml.kernel.org/r/20170525185107.12869-5-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/sem.c
ipc/util.c
ipc/util.h