ARM: Ensure do_cache_op takes mmap_sem
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 Sep 2009 10:41:51 +0000 (11:41 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 Sep 2009 17:06:21 +0000 (18:06 +0100)
do_cache_op() uses find_vma() to validate its arguments without holding
any locking.  This means that the VMA could vanish beneath us.  Fix
this by taking a read lock on mmap_sem.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found