commit | 119d0dff18fde23e2db24f2bba2d02271a5af1fa | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Tue May 16 14:22:47 2017 +0000 |
committer | Stefano Stabellini <sstabellini@kernel.org> | Tue May 16 11:43:52 2017 -0700 |
tree | 02598cdb9328e57731037334248f479708256b07 | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 [diff] |
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: 71ebd71921e4 ("xen/9pfs: connect to the backend") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>