]> git.baikalelectronics.ru Git - kernel.git/commit
ipc/shm: properly return EIDRM in shm_lock()
authorDavidlohr Bueso <dbueso@suse.de>
Tue, 4 Sep 2018 22:46:02 +0000 (15:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 4 Sep 2018 23:45:02 +0000 (16:45 -0700)
commitce8e30e48ea356baf493b700b4bd16c1c1256efd
tree4170de0dc2efb45b40def8efe4d1543bf0678d87
parent8b5d5bc08c651b0babc34c57aa050e02a1a4502d
ipc/shm: properly return EIDRM in shm_lock()

When getting rid of the general ipc_lock(), this was missed furthermore,
making the comment around the ipc object validity check bogus.  Under
EIDRM conditions, callers will in turn not see the error and continue
with the operation.

Link: http://lkml.kernel.org/r/20180824030920.GD3677@linux-r8p5
Link: http://lkml.kernel.org/r/20180823024051.GC13343@shao2-debian
Fixes: 165cf7bfc2f ("ipc: drop ipc_lock()")
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Reported-by: kernel test robot <rong.a.chen@intel.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/shm.c