From: Jianguo Wu Date: Wed, 11 Sep 2013 21:21:25 +0000 (-0700) Subject: mm/mempolicy: return NULL if node is NUMA_NO_NODE in get_task_policy X-Git-Tag: v3.12-rc1~52^2~235 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1da6f0e1b316d0215989fe4d7c657edead1fdea7;p=pandora-kernel.git mm/mempolicy: return NULL if node is NUMA_NO_NODE in get_task_policy If node == NUMA_NO_NODE, pol is NULL, we should return NULL instead of do "if (!pol->mode)" check. [akpm@linux-foundation.org: reorganise code] Signed-off-by: Jianguo Wu Cc: Mel Gorman Cc: KOSAKI Motohiro Cc: Rik van Riel Cc: Hugh Dickins Cc: Hanjun Guo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed