On 19-May-20 4:42 AM, wangyunjian wrote:
From: Yunjian Wang <wangyunj...@huawei.com>

The issue is that a file descriptor at 0 is a valid one. Currently
the file not found, the return value will be set to 0. As a result,
it is impossible to distinguish between a correct descriptor and a
failed return value. Fix it to return -ENOENT instead of 0.

Fixes: a69f79300262 ("bus/fslmc: support multi VFIO group")
Cc: sta...@dpdk.org

Signed-off-by: Yunjian Wang <wangyunj...@huawei.com>
---

I am unfamiliar with bus/fslmc code but i've taken a quick look, and i've noticed that there's another instance of get_group_fd() usage that you're not modifying - is that intentional?

--
Thanks,
Anatoly

Reply via email to