]> git.baikalelectronics.ru Git - kernel.git/commit
xen/9pfs: fix return value check in xen_9pfs_front_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 16 May 2017 14:22:47 +0000 (14:22 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 18 May 2017 18:42:32 +0000 (11:42 -0700)
commit166efad1c81e4cb47ad4b513a7451fed1ca0a933
tree683e8a787d1a45bb593c2f45a1042bd60428a79f
parent1c86c345897944b641dfb33b1883ee64032c7636
xen/9pfs: fix return value check in xen_9pfs_front_probe()

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

Fixes: eaf9c1741306 ("xen/9pfs: connect to the backend")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
net/9p/trans_xen.c