mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ipc/util.c: correct comment in ipc_obtain_object_check
The comment that explains ipc_obtain_object_check is wrong: The function checks the sequence number, not the reference counter. Note that checking the reference counter would be meaningless: The reference counter is decreased without holding any locks, thus an object with kern_ipc_perm.deleted=true may disappear at the end of the next rcu grace period. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Manfred Spraul <[email protected]> Reviewed-by: Davidlohr Bueso <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Kees Cook <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4241c1a304
commit
2e5ceb452c
1 changed files with 2 additions and 2 deletions
|
|
@ -629,8 +629,8 @@ err:
|
|||
* @ids: ipc identifier set
|
||||
* @id: ipc id to look for
|
||||
*
|
||||
* Similar to ipc_obtain_object_idr() but also checks
|
||||
* the ipc object reference counter.
|
||||
* Similar to ipc_obtain_object_idr() but also checks the ipc object
|
||||
* sequence number.
|
||||
*
|
||||
* Call inside the RCU critical section.
|
||||
* The ipc object is *not* locked on exit.
|
||||
|
|
|
|||
Loading…
Reference in a new issue