sata_sx4: correctly handling failed allocation
authorInsu Yun <wuninsu@gmail.com>
Tue, 29 Dec 2015 21:21:15 +0000 (16:21 -0500)
committerTejun Heo <tj@kernel.org>
Fri, 1 Jan 2016 02:33:42 +0000 (21:33 -0500)
commit427cc61a4486fa80eccaad2bdfcc50cfd1b46625
treeaebf7116d2457bb18ea94f2286388f29330f66d7
parent1980eb9bd7d733ce089f9b154c08c2c71fb1f2a7
sata_sx4: correctly handling failed allocation

Since kzalloc can be failed in memory pressure, return error when failed.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_sx4.c