diff options
author | Sasha Levin <levinsasha928@gmail.com> | 2012-04-26 03:01:53 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-26 08:26:34 +0400 |
commit | 6e8b09eaf268bceac0c62e389b4bc0cb83dfb8e5 (patch) | |
tree | 8b284da8a79355ef631c8c418c369fd1ec83b251 /drivers/platform | |
parent | f2a9ef880763d7fbd657a3af646e132a90d70d34 (diff) | |
download | linux-6e8b09eaf268bceac0c62e389b4bc0cb83dfb8e5.tar.xz |
mm: fix NULL ptr dereference in move_pages
Commit 3268c63 ("mm: fix move/migrate_pages() race on task struct") has
added an odd construct where 'mm' is checked for being NULL, and if it is,
it would get dereferenced anyways by mput()ing it.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions