Re: [PATCH] dmaengine: idxd: Free the minor number when cdev setup fails

From: Vinod Koul

Date: Fri Nov 20 2026 - 05:04:51 EST



On Thu, 10 Sep 2026 16:48:32 +0900, SeungUk Nam wrote:
> idxd_wq_add_cdev() allocates a minor number from cdev_ctx->minor_ida for
> the new struct idxd_cdev. When dev_set_name() or cdev_device_add()
> fails, the error path calls put_device(), and the release callback
> idxd_cdev_dev_release() only frees idxd_cdev, so the minor number is
> never returned to the ida. Leaked numbers accumulate across bind/unbind
> cycles, up to MINORMASK, for as long as the module stays loaded.
>
> [...]

Applied, thanks!

[1/1] dmaengine: idxd: Free the minor number when cdev setup fails
commit: 56cbd7f69ce6037738410a5c50efb7cacf52b0ae

Best regards,
--
~Vinod