From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 471CF59A928; Mon, 31 Aug 2026 13:51:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788184297; cv=none; b=BiP3YdrYK39hYuiGW6gAdpYY2V+75rGcsaTQNcp4pWahUXBXTtdffkXerlUvJqtT6HW82EXaJR3VSLCV2JAHxCyh97hysiAU67lVOnmyGfuwz0FAtqNZOKqqADdRUsCagd3OGpnctQui9sv7mge8XBFdH47faxHohcW5HzJH7DY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788184297; c=relaxed/simple; bh=GNs4CMggivuFwQxDYX5dqP9gsivYLHwljMUhff8vgt8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Uy8QpBklorSTh8oKEb2eaWxg9Gdqfsrj3vnKXB6CpwGYJEQ4wWgGb3kp6wL8vmqYdbW+fn/3Ka/SxdDtoL1IL2PnYZ3q01TOqo9rFYGTT0j90f9Q2L4Vqhv0bnRhxRr+QyWWBw4pnW3fH7shYISTtIB05shLzuHh8YS7YgY/YC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iimfiGEW; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iimfiGEW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 657FE1F00A3F; Mon, 31 Aug 2026 13:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788184294; bh=W8P6XE2j2OJdusvfmPaNT0mDL52qIeIu9H1gsQ2frDU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iimfiGEWw8rKPlZPwq6ZnfoOAlpltU5zXltcGokEhs9SWWH11z/zEyK9ElefO5tVf Jp39Wc0eXvurze8A8K4JmyAF3Aj09hUsjMtE2vQesazFlbN4isHyH69n+53aFJ78i/ vaqVWtOOIqLzNZ4F+4iPBVMC1C/PB8P3Q0Hqg7bc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable@kernel.org, Xu Yilun , Tom Rix , Moritz Fischer , Griffin Kroah-Hartman , Xu Yilun Subject: [PATCH 6.12 56/99] fpga: dfl: fme: add error handling Date: Mon, 31 Aug 2026 15:34:25 +0200 Message-ID: <20260831133402.826469696@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260831133359.740409777@linuxfoundation.org> References: <20260831133359.740409777@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Griffin Kroah-Hartman commit b5ba63e247075087ab8a6a087622c762dc4172e9 upstream. Add error handling to devm_kasprint in fme_perf_pmu_register(). Assisted-by: gkh_clanker_2000 Fixes: 724142f8c42a ("fpga: dfl: fme: add performance reporting support") Cc: stable@kernel.org Cc: Xu Yilun Cc: Tom Rix Cc: Moritz Fischer Signed-off-by: Griffin Kroah-Hartman Signed-off-by: Greg Kroah-Hartman [ Yilun: Fix stable tag, add Fixes tag ] Reviewed-by: Xu Yilun Link: https://lore.kernel.org/r/2026070620-unwired-clay-f6cc@gregkh Signed-off-by: Xu Yilun Signed-off-by: Greg Kroah-Hartman --- drivers/fpga/dfl-fme-perf.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/fpga/dfl-fme-perf.c +++ b/drivers/fpga/dfl-fme-perf.c @@ -925,6 +925,8 @@ static int fme_perf_pmu_register(struct PERF_PMU_CAP_NO_EXCLUDE; name = devm_kasprintf(priv->dev, GFP_KERNEL, "dfl_fme%d", pdev->id); + if (!name) + return -ENOMEM; ret = perf_pmu_register(pmu, name, -1); if (ret)