]> 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)
commitf4e30e6810cf56f1de794c13789ed9ee45ac2677
tree683e8a787d1a45bb593c2f45a1042bd60428a79f
parent4f803c39abc21f298fd8b5e405999d45f3107a6b
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: e01cba69d3a9 ("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