]> asedeno.scripts.mit.edu Git - linux.git/commit
ata: fix return value check in ahci_seattle_get_port_info()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 14 Jun 2016 00:26:49 +0000 (00:26 +0000)
committerTejun Heo <tj@kernel.org>
Wed, 15 Jun 2016 18:26:41 +0000 (14:26 -0400)
commitf52a4c74efbb61195490535e9d65d964c4ebfee3
treec10ce11ac682d4f76858c3b1a4f95070adc82682
parentdb06d759d6cf903aeda8c107fd3abd366dd80200
ata: fix return value check in ahci_seattle_get_port_info()

In case of error, the function devm_kzalloc() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should
be replaced with NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_seattle.c