mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
0642287e3e
Smatch warns:
drivers/dma/idxd/cdev.c:327:
idxd_cdev_open() warn: 'sva' was already freed.
When idxd_wq_set_pasid() fails, the current code unbinds sva and then
goes to 'failed_set_pasid' where iommu_sva_unbind_device is called
again causing the above warning.
[ device_user_pasid_enabled(idxd) is still true when calling
failed_set_pasid ]
Fix this by removing additional unbind when idxd_wq_set_pasid() fails
Fixes:
|
||
---|---|---|
.. | ||
bus.c | ||
cdev.c | ||
compat.c | ||
debugfs.c | ||
device.c | ||
dma.c | ||
idxd.h | ||
init.c | ||
irq.c | ||
Makefile | ||
perfmon.c | ||
perfmon.h | ||
registers.h | ||
submit.c | ||
sysfs.c |