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 CD87C47CC83; Mon, 31 Aug 2026 14:04:24 +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=1788185065; cv=none; b=Qvk37OuAEssCErxLWoRBR486wnH6Fv9oyDgLngNtWBEK/cyn9vh0PsPxUnnLrTImvJNZaQ0MhOE2lptbYyLju3fHgvQ1hTx1G13aHX9WSTHPH1QeRDR4X79EX1+nCH2ksOogdb8zsoOIsfLbiDqW1mcbfiGP4eONPtCPaUAFy8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788185065; c=relaxed/simple; bh=Gdcewc+0N/hEHECVTTcHN/zLnYcnh1SzfU+4rinkZOs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tiI7FzFSMO9iG8eAB9egByz6uRmMwm73yAP3YkMNmQbxoTCP1yK/a1fKFkP4ecZ0+hP6edNNrw1RsCmI7xqOXrmNFpJzQ9/nNJkaMEFqK+00gMZFho/Y0XLGG4SeMw6S7fCYFhiLvOsz1YWiqDZv0+IygiVaCz7uW9P7tzUu6b8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TLiiWk8u; 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="TLiiWk8u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A58C1F000E9; Mon, 31 Aug 2026 14:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788185064; bh=cktXRoHc3hepNF/lfCLAkhqT8OoFaliAl+9bUcMC+aQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TLiiWk8ui/DooeipPgOSWlHHFsjaugBv0jfACMmN7ast3cXyDIVXbq7Z8BhTHnGDd JOP1tIrT73GVfRB7AEqxgw5JK1BBTiMMY5BDTwZd//zUSB6nj1awQlkDCfRfX/nO0p 3zQZoIAddOszbM/Z0pOitdyYVZDb4DWRwE3o+Qak= 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 5.15 42/69] fpga: dfl: fme: add error handling Date: Mon, 31 Aug 2026 15:35:15 +0200 Message-ID: <20260831133400.668301613@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260831133358.601894154@linuxfoundation.org> References: <20260831133358.601894154@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 5.15-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)