From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796479300; b=T32mJ9Eqha8jkHTCykmHMxv7+6LTrAnjnF/dxE+GBoZnETuDAm3bdDFN/EYDDyUKV8Zi fI5ylwT37Gbvd5Jo6KWYQQO3qDYvydiv57H5KSd2gzD0Ey3HZgJXkWKAut9/TxqbyhJd2 JqI3b5HS3vNhELbMp2/065eBD98vaHXUN5jXup1WS4q8O5BUVxoIFo9xjoEMapejZiNPu B4GsWbzbBrdI/3prvTiB1Wkcfa7UcdWmAcFPIHB++yXXE8w6YnJ+hGk6ptLxMy+qguGyB KZpJzaPESrwPIcGkbfY1UL79e+oV/XzT1evPtVpNWqUbp3mLOMOXPaozQXAF5k8cuIQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796479300; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=EhjllMwDS43s8zjfs6IeJQ7HUZa6GuQmTQ+N7fGmWBI=; b=ikPwL5HWlUtsVc3m/FRLDjSRpgshduUGcoo7le0QSPDhkC5rHvLtgjnvIsrt5QZUD5pt exYrMj5pqTrZoBFHDEkWT3vDtGdZrU0D6JG3SXsUL1NdorgPeYxCUPDPmtfniO71e3pqW NdUt9MsySuLOCPAFdr7+daRvUwgS7m/SNdpJUpB1zpwrWIzkBOISeoxjfZOze0/Ngb1lT WzbTefhUfyoY+ezFl1VFXDDRWad9zHRqFhB/E7EQ7pj6RVYKHft0teU3Plwx1a/xn+cLu je2KeidWNgWJniKawAoYa3gA5iZrw+0dLFmDh0hbdzyb2jEn2NomKi4flJ9uwMwD4Bg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d5r7vcgo; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18D44606A322 for ; Sat, 5 Dec 2026 14:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d5r7vcgo Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB4061F0092B; Sat, 5 Dec 2026 14:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796479300; bh=EhjllMwDS43s8zjfs6IeJQ7HUZa6GuQmTQ+N7fGmWBI=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=d5r7vcgoDNhcdNmIMnZcqn49VR0xdFXPzULIaclZ81UxSUQQhXyQ7MNqnG7UBlbHI jTasxiYMAW6S4QTlOrxjbifc0mkpYA4IvqCAKavvPNjfVoDIKdF4b3+W/rH5DrG6ST 5fto1aYTQWKfBYMd08e2M9tz/BwpR80UdoT6O46k9vCGSw9qj2U7bk22VH/bdQcDoj Fhl6YARy5gRbgP8hAVZupZQUiEa/2iM3M+SEK83cU0t/08ARMkCytmklIdBX0MuaYs e9MiR2pHoOQ4T/6F5b7Zmw+H9asbABhEkFy6DXSR0NBaZImEUEDEBrA/+xGsWxJ8V9 Kl6BReH67UQGA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] RDMA/irdma: Clean up resources on cleanup_wq allocation failure Reply-To: sashiko-reviews@lists.linux.dev To: "Serhat Kumral" , linux-rdma@vger.kernel.org In-Reply-To: <20261205134700.13799-1-serhatkumral1@gmail.com> References: <20261205134700.13799-1-serhatkumral1@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 14:01:39 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > In irdma_rt_init_hw(), all error paths inside the do { ... } while (0) > block break out to invoke irdma_rt_deinit_hw(), except the > alloc_workqueue() failure for iwdev->cleanup_wq, which returns -ENOMEM > directly. This skips cleaning up previously initialized resources > and callers do not call irdma_rt_deinit_hw() when irdma_rt_init_hw() fail= s. >=20 > Set status to -ENOMEM and break out of the block so > irdma_rt_deinit_hw() runs properly on failure. >=20 > Fixes: 44d9e52977a1 ("RDMA/irdma: Implement device initialization definit= ions") > Signed-off-by: Serhat Kumral Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205134700.1379= 9-1-serhatkumral1@gmail.com?part=3D1