aboutsummaryrefslogtreecommitdiff
path: root/crypto/api.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2009-07-10 03:27:38 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-08-16 14:27:35 -0700
commit60634e4b830850bb38016f1e6a7a7358eba8118c (patch)
tree48762263e12695b03519922263c80625c7c60cf8 /crypto/api.c
parenta79c30e57c0eac03aae8be4649958f8592141d20 (diff)
mm_for_maps: shift down_read(mmap_sem) to the caller
commit 00f89d218523b9bf6b522349c039d5ac80aa536d upstream. mm_for_maps() takes ->mmap_sem after security checks, this looks strange and obfuscates the locking rules. Move this lock to its single caller, m_start(). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'crypto/api.c')
0 files changed, 0 insertions, 0 deletions