]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
octeontx2-af: Fix error handling
authorRatheesh Kannoth <rkannoth@marvell.com>
Wed, 21 Jan 2026 03:39:34 +0000 (09:09 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 04:05:02 +0000 (20:05 -0800)
commit19e4175e997a5b85eab97d522f00cc99abd1873c
tree05d03b8a04ed12faea4e19d1a34c9adbbb206fa0
parente8ca461f7d19464b47c64fe4cf2f83162421bcc0
octeontx2-af: Fix error handling

This commit adds error handling and rollback logic to
rvu_mbox_handler_attach_resources() to properly clean up partially
attached resources when rvu_attach_block() fails.

Fixes: 746ea74241fa0 ("octeontx2-af: Add RVU block LF provisioning support")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Link: https://patch.msgid.link/20260121033934.1900761-1-rkannoth@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c