]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb.c: add missing spin_lock() to hugetlb_cow()
authorDean Nelson <dnelson@redhat.com>
Tue, 26 Oct 2010 21:22:08 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:11 +0000 (16:52 -0700)
commit99cef68f083679c414169c16ea307cf97fa83c7f
tree691e3e8b04f486fe8a13fc43587c0144275e7c70
parent7186f66be2cef1430c79e652cb4ca2f39c899d37
mm/hugetlb.c: add missing spin_lock() to hugetlb_cow()

Add missing spin_lock() of the page_table_lock before an error return in
hugetlb_cow(). Callers of hugtelb_cow() expect it to be held upon return.

Signed-off-by: Dean Nelson <dnelson@redhat.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c