Whamcloud - gitweb
LU-5751 libcfs: check mask returned by cpumask_of_node 07/13207/2
authorLiang Zhen <liang.zhen@intel.com>
Tue, 30 Dec 2014 15:44:11 +0000 (23:44 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 7 Jan 2015 17:14:00 +0000 (17:14 +0000)
commit2a32996c017cfbbe4260463710f68d1ff91465aa
treeca079a0a18fbc3b49c047069c95ccbb98e57d426
parent5e17af16a920c56eba438faf7cb66f55c70e0b79
LU-5751 libcfs: check mask returned by cpumask_of_node

cpumask_of_node can return NULL if NUMA node is unavailable,
in this case cfs_node_to_cpumask will try to copy from NULL
and cause kernel panic.

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Change-Id: Ia866c80a5cf5eaba76e392daa77a572fd427d18c
Reviewed-on: http://review.whamcloud.com/13207
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Wei <wei.g.li@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/linux/linux-cpu.c