summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJianguo Wu <wujianguo@huawei.com>2013-09-11 21:21:25 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 22:57:29 (GMT)
commit1da6f0e1b316d0215989fe4d7c657edead1fdea7 (patch)
tree0fe575f5181927218f9f2e9bd3dca571ec18445f /drivers
parentaf0ed73e699bb0453603b1d1a4727377641b2096 (diff)
downloadlinux-1da6f0e1b316d0215989fe4d7c657edead1fdea7.tar.xz
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 <wujianguo@huawei.com> Cc: Mel Gorman <mgorman@suse.de> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Rik van Riel <riel@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: Hanjun Guo <guohanjun@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions