dmapools: protect page_list walk in show_pools()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 30 Jun 2009 18:41:25 +0000 (11:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2009 01:56:00 +0000 (18:56 -0700)
commitc49568235dd7b4a2ffad63aa950562f4ffb9455f
treefbfcc2e0ffc4a82bd9f481e1a746bfb49955800f
parent4d6c13f87db12ae1ce35ea6a15688ac72419b133
dmapools: protect page_list walk in show_pools()

show_pools() walks the page_list of a pool w/o protection against the list
modifications in alloc/free.  Take pool->lock to avoid stomping into
nirvana.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/dmapool.c