From nobody Mon Oct 6 22:51:44 2025 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B917C2F237B; Wed, 16 Jul 2025 14:48:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752677314; cv=none; b=VTDtJIqneAgIhTGlXOqsCCt2KHxAhBpx8w+XwHn0a9EwUdmhMqAY0NvdmsnwcLrxqMkNJf/2W4s7gKQqcLYQ2TZBCkX978SqVoO6mOM1iX9QTuLR6n3pfQgx/Zrrl5Tge2zXGlyXYYlZkYKtsoSmZk2TLv7JYs/WvdnnNiSdUQc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752677314; c=relaxed/simple; bh=BCcCRBqqAGtRsiNyKrCYuOoOMpnZPWRJIhvbklexh+s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=vEp86IMPMC10VM4IPhZ6Kh9eePUgCKIzWmjICHBImyKRH2YwYe80vo7Z5m/+SjLkS3OYAKIzRW6+H0oLiYdyI75a68K1d96lh79I8nMdK6+DwBe1UHjZpkzCdLUtTl5TPDrutkQUJdNVcB00V/KlIgDFB3VlT8F+NNVgepkV6pM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ihhWaeoV; arc=none smtp.client-ip=209.85.222.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ihhWaeoV" Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-7e2c920058fso106281885a.0; Wed, 16 Jul 2025 07:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752677311; x=1753282111; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:from:to:cc:subject :date:message-id:reply-to; bh=yqn7zR6ezyFbi7KLXJvKlC3aTK2K6+zAz9R7hgTDM3w=; b=ihhWaeoVm2vAPYvVkQcspQ6oh0bIdl6dnp/vkhfi+1jxGk6/t3KTZbRSOdna5fygO3 Rzl6A8eYIdeI9o75j/EZomTsweQ0AG8YGcI8eDM1fN3S4qcYeqQ4qZfi56T1RLujFsEk EsStZVFzf6xN9o9C4gW6kVxgvWSTOviLtzzsKJtG0bIZoDs/gFzTgKFE0JK0CXhulnos UJ9tPz6REGrwGJhRujbbJTX7d11Yub666X1V0Iim6G0cddoYTPJG+sOjCaSkbE3NQpAB kJT8LI8L17dCGv+kaf/57ZI2W/usLVWuYB5fQ1zgunxsxL0SAYzetog8Mvs8qAPu9pCJ RU6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752677311; x=1753282111; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yqn7zR6ezyFbi7KLXJvKlC3aTK2K6+zAz9R7hgTDM3w=; b=VE9KBuERbdiLg3HTwlpNP8jDzkdXSebf7vna+G7mKyncx/YykumIXx5vr3zJHW3PIv /lx9eEMMFeMZxND41UJ+A13FQMPGkP5J9Sh47YWNmvEdBKlu2YoPMn9JGlQ04R1oFfCQ 7e+0wojM/YsVbaSdweJcUHorJNgDl7gECJ/v1EcELu0LF9SsyLbwxZwU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: by 2002:a05:620a:4e9a:b0:7d3:a4fa:ee06 with SMTP id af79cd13be357-7e337b853a9mr928321785a.29.1752677311175; Wed, 16 Jul 2025 07:48:31 -0700 (PDT) Received: from fauth-a2-smtp.messagingengine.com (fauth-a2-smtp.messagingengine.com. [103.168.172.201]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7dcdece0f6asm760137985a.104.2025.07.16.07.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jul 2025 07:48:30 -0700 (PDT) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfauth.phl.internal (Postfix) with ESMTP id 31812F40068; Wed, 16 Jul 2025 10:48:30 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 16 Jul 2025 10:48:30 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdehjeelkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvfevufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrghtth gvrhhnpeegffejudegueejjeeivdeuteejvdduvdduvdefledugeejhfelieduhffggffg ffenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgepud enucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvshhmthhprghuthhhphgv rhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheehvddqsghoqhhunhdrfh gvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgvpdhnsggprhgtphhtthho pedugedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhhinhhgoheskhgvrhhnvg hlrdhorhhgpdhrtghpthhtohepphgvthgvrhiisehinhhfrhgruggvrggurdhorhhgpdhr tghpthhtohepfihilhhlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehlohhnghhmrg hnsehrvgguhhgrthdrtghomhdprhgtphhtthhopehojhgvuggrsehkvghrnhgvlhdrohhr ghdprhgtphhtthhopegrlhhitggvrhihhhhlsehgohhoghhlvgdrtghomhdprhgtphhtth hopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphht thhopehruhhsthdqfhhorhdqlhhinhhugiesvhhgvghrrdhkvghrnhgvlhdrohhrghdprh gtphhtthhopehlvghithgrohesuggvsghirghnrdhorhhg X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 16 Jul 2025 10:48:28 -0400 (EDT) From: Boqun Feng To: Ingo Molnar , Peter Zijlstra Cc: "Will Deacon" , "Waiman Long" , Miguel Ojeda , Alice Ryhl , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Breno Leitao , "Paul E. McKenney" , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Andrew Davis , Lee Jones , Boqun Feng Subject: [PATCH 2/9] leds: lp8860: Check return value of devm_mutex_init() Date: Wed, 16 Jul 2025 07:48:11 -0700 Message-Id: <20250716144818.47650-3-boqun.feng@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250716144818.47650-1-boqun.feng@gmail.com> References: <20250716144818.47650-1-boqun.feng@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Thomas Wei=C3=9Fschuh devm_mutex_init() can fail. With CONFIG_DEBUG_MUTEXES=3Dy the mutex will be marked as unusable and trigger errors on usage. Add the missed check. Fixes: 87a59548af95 ("leds: lp8860: Use new mutex guards to cleanup functio= n exits") Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Andrew Davis Acked-by: Lee Jones Signed-off-by: Boqun Feng Link: https://lore.kernel.org/r/20250617-must_check-devm_mutex_init-v7-2-d9= e449f4d224@weissschuh.net --- drivers/leds/leds-lp8860.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/leds/leds-lp8860.c b/drivers/leds/leds-lp8860.c index 52b97c9f2a03..0962c00c215a 100644 --- a/drivers/leds/leds-lp8860.c +++ b/drivers/leds/leds-lp8860.c @@ -307,7 +307,9 @@ static int lp8860_probe(struct i2c_client *client) led->client =3D client; led->led_dev.brightness_set_blocking =3D lp8860_brightness_set; =20 - devm_mutex_init(&client->dev, &led->lock); + ret =3D devm_mutex_init(&client->dev, &led->lock); + if (ret) + return dev_err_probe(&client->dev, ret, "Failed to initialize lock\n"); =20 led->regmap =3D devm_regmap_init_i2c(client, &lp8860_regmap_config); if (IS_ERR(led->regmap)) { --=20 2.39.5 (Apple Git-154)