Thread (34 messages) 34 messages, 5 authors, 2025-02-27

Re: [PATCH v2 6/7] iommufd: Implement sw_msi support natively

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-02-27 19:33:31
Also in: linux-iommu, linux-kselftest, linux-patches, lkml

On Wed, Feb 19, 2025 at 05:31:41PM -0800, Nicolin Chen wrote:
+	cur = kzalloc(sizeof(*cur), GFP_KERNEL);
+	if (!cur)
+		cur = ERR_PTR(-ENOMEM);
          ^^^^^^^^^^^^^^^^
+	cur->sw_msi_start = sw_msi_start;
+	cur->msi_addr = msi_addr;
+	cur->pgoff = max_pgoff;
+	cur->id = ictx->sw_msi_id++;
+	list_add_tail(&cur->sw_msi_item, &ictx->sw_msi_list);
+	return cur;
+}
Dan pointed out this should have been
  return ERR_PTR(-ENOMEM);

I fixed it up

Thanks,
Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help