Yunjian Wang
1f16fa99aa
vfio: fix group descriptor check
...
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: b758423bc4fe ("vfio: fix race condition with sysfs")
Fixes: ff0b67d1c868 ("vfio: DMA mapping")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
2020-10-05 10:08:57 +02:00
..
2020-09-25 11:13:57 +02:00
2020-09-25 15:37:55 +02:00
2020-09-08 00:09:50 +02:00
2020-09-16 18:52:55 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-10-05 10:08:57 +02:00
2020-09-25 11:13:57 +02:00
2020-09-30 19:19:14 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-18 18:55:12 +02:00
2020-09-25 11:13:57 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-19 00:25:35 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-19 00:25:37 +02:00
2020-09-25 11:13:57 +02:00
2020-09-19 00:25:37 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-25 11:13:57 +02:00
2020-09-25 11:13:57 +02:00
2020-09-30 19:19:11 +02:00
2020-09-08 00:09:50 +02:00
2020-10-02 13:49:16 +02:00
2020-10-01 18:43:10 +02:00
2020-09-25 15:42:29 +02:00
2020-09-11 11:51:16 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:09:50 +02:00
2020-09-08 00:11:30 +02:00
2020-09-25 11:13:57 +02:00
2020-09-08 00:09:50 +02:00
2020-09-30 21:08:39 +02:00
2020-10-01 18:43:10 +02:00
2020-09-11 01:55:35 +02:00
2020-09-08 00:09:50 +02:00
2020-09-30 23:16:56 +02:00
2020-10-05 09:49:55 +02:00