hsi: correctly handle return value of kzalloc
authorInsu Yun <wuninsu@gmail.com>
Sat, 17 Oct 2015 19:25:07 +0000 (19:25 +0000)
committerSebastian Reichel <sre@kernel.org>
Mon, 19 Oct 2015 09:42:02 +0000 (11:42 +0200)
commitd2c85ac24ed7636934f469fac8836b87c7e6cb40
treed40442df29f9704604f316735ac9f2997d4a05d6
parente74eba049356fdad6713ab66322d9aeb0e85608b
hsi: correctly handle return value of kzalloc

Since kzalloc can be failed in memory pressure,
its return value should be checked and handled.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/hsi.c