Thread (8 messages) 8 messages, 5 authors, 2018-01-19

Re: [RFCv2 PATCH 05/36] iommu/process: Bind and unbind process to and from devices

From: Yisheng Xie <hidden>
Date: 2017-11-29 06:08:20
Also in: linux-acpi, linux-arm-kernel, linux-iommu, linux-pci

Possibly related (same subject, not in this thread)


On 2017/10/6 21:31, Jean-Philippe Brucker wrote:
+int iommu_process_bind_device(struct device *dev, struct task_struct *task,
+			      int *pasid, int flags)
+{
[..]
+			err = iommu_process_attach_locked(context, dev);
+			if (err)
+				iommu_process_put_locked(process);
one ref for a context is enough right? so also need call iommu_process_put_locked()
if attach ok, or will be leak if user call bind twice for the same device and task.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help