idpf: Fix mailbox IRQ name leak on request failure
authorYuho Choi <dbgh9129@gmail.com>
Fri, 3 Jul 2026 05:03:32 +0000 (01:03 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 28 Jul 2026 18:23:01 +0000 (11:23 -0700)
commit9bff30482c10f70d9e56c0633a6616e07140e217
treef59bc25695c39539b2536b4909a3a680934abee7
parentbef152db47debcd14cbacefc5767f6f026c4bc89
idpf: Fix mailbox IRQ name leak on request failure

idpf_mb_intr_req_irq() allocates the mailbox IRQ name before calling
request_irq(). On success, the name is released later through
kfree(free_irq()), but request_irq() failure returns without freeing it.

Free the allocated name on the request_irq() failure path.

Fixes: 4930fbf419a7 ("idpf: add core init and interrupt request")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Samuel Salin <Samuel.salin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf_lib.c