OSDN Git Service

s390/scm_blk: correct numa_node in scm_blk_dev_setup
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 25 Jun 2018 12:30:42 +0000 (14:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:09 +0000 (16:59 -0700)
commit6143a4525c3e97bb56b6e5ccd09c7b89f648873a
tree9c988c7eead0b8b56973d86ac6cc5a284ecb97da
parent0c6df6d17ab43cdb5c889d49149aeb9160e6cb45
s390/scm_blk: correct numa_node in scm_blk_dev_setup

[ Upstream commit d642d6262f4fcfa5d200ec6e218c17f0c15b3390 ]

The numa_node field of the tag_set struct has to be explicitly
initialized, otherwise it stays as 0, which is a valid numa node id and
cause memory allocation failure if node 0 is offline.

Acked-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/block/scm_blk.c