From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.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 8E6E53CF057 for ; Thu, 4 Jun 2026 20:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780605407; cv=none; b=dFB50eMRHx5WtvmiWZfl2ACrc3Pn24TkxnJEjybbWot2TgpCr9PdNkQo68wux/+YKigh3hVEekHjFG4gm/hrZWou2wkPKqA+/2v3j3lKYBBX5fLQGoQlwTucnho1u+lDwG/gWP4fh3BM2udYcztu8AL3K+JGcOaoLjiAtpeFx6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780605407; c=relaxed/simple; bh=6x/ojXkuF8nllztqjsDMjtFT/Fgf5pdxmmz0LydfmG0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RXBwGus5mFI9LEWQIhMTbnUOUI9hxIC5Ads3DYlic1u3bhH+lhHtCITaDWRtAEhNCW/R63WdYo1YQoMzZihy2XuaZA6CpMzeeUMgsOnMeUCGz1n+PiPL6f7FbksBXJ15WXkgQBlhsLQ9Y9+etAbKeG5HfCgTjlp3kUUy6ziplkE= 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=O5IyRpbs; arc=none smtp.client-ip=209.85.210.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="O5IyRpbs" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-84230ab8857so534941b3a.1 for ; Thu, 04 Jun 2026 13:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780605406; x=1781210206; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iJnZuwuMHvW8L98BhZe5fgrtMJB4sNolVVw/sf9vpDk=; b=O5IyRpbsjuuszKvps2WHRsl01S4PqhUzh4kIKPFdVmUzs4AeHF6Q+nV8ab7Je8JpbI J4pT2fB58HY0ZORYBRQaGYFu5bbGmrKRC8Ui9xAcCihi/cD238JkN2rKFwznJ5wt31Xv uIhf0yPwyesIiAd+JW1aqzpVJiN8wuGa/Sk+o5Dy0PPS8YjzZO/PDz1dnt444VlzJrzU JsqibM8utZicVlsaCw+mvuW6u63O6uqVbd7o03zta0RR9txSX6DmS8P28bl2XlYAN3Pa rKHXQdqz7fPJ0ZiGeapcXfhC++rGZXP7XHwuBthxqiv4FOfQa8Scf1LSYfZXk/0ZXnUY 05kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780605406; x=1781210206; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iJnZuwuMHvW8L98BhZe5fgrtMJB4sNolVVw/sf9vpDk=; b=HRg+Y6JdZ3As4WcNUeVAh5FNV9Pa42PGU9moeLCJHHnEdDEAZnoV3KOeMs8eG9FrFz F56ANKpIzzq4hrwdDVlWaMjLSvnuFoNXxqGiPrchOJC0ZJ20IR6Tam+C9jjDvyFV10Tq 5lxvu4tmCVBKc6EFn5DsPAHhiNRyNj7YWJjUxepm4q6pQQ2ppHo5nz2vfppNAZKjO2QK +Jy1KL2pIwrWoMxHhtzQt9P/Hvq1EwPAd9JSFbD7veXDZ5uE2Xsuha2FXBH4LLDEavn+ /1QMpkOuwDGGg2OTb4QRaUE7TfRR4hirGm71jQVo41z4k61VKyL0H/ZpwKtrCcxgblMp vNxA== X-Forwarded-Encrypted: i=1; AFNElJ8tLibSD7rnBtC7T8aQmAj/GL5EQ6z7UotwI2ujbPkZPq0XrB+dryiBXZIpm/RK5/yaPxWuqt5rUw+3kWc=@vger.kernel.org X-Gm-Message-State: AOJu0Yy+RAK35iS6WxZeHX652ibHIOM1GXyTc950PAIaYpMOr+tMX6AK EdNHeQSNQWzz7k/Frq3GAe9p4/Wtnx8dv9KvW2XrDGs3Gd27LyD2nH2a X-Gm-Gg: Acq92OEuFoDpJHO6lr8sm0XM0DVpoNEg+pNJWkPoOeZRFQmZ1AHizMWptTFtVgVzsnX oJBp/RblbHlYfuhZvWNjgezy0+o/cgh7FX/5Xa7/p6tXX95H5YOp5tOKHUDfvUUvKN9OG6/PAWb tGPH5FNWlrKFwK1DK94nvzRIpXKSIeT34WyUMCQBhnVQHbh3dszrcqbABYhjDIZJx7Lh4aVdVJP Zl66FJGcQiPvsRYW41OL8CAoL5yowOo//PACwHGlk374XYk0MHX13EVgiFjWutqOR+jdgkZGQCO BDRy+P8CsL8oQHkQr+iVYXNQRC0OAo+rR9wAWXrsGE2LigPhbcYlikyBtEOxj/aeASqKrOV244H PTaIEP8Cx+Ew2YD79ZUFRVzqbWtTNVxZqO7Ussm/O6P7e1h8ylT0Yo7XGh2i3POFuRuyoGW3R7F agGeScDG11DQMI8WvP+EzSoN3JUXZlHaCA8aHMUGvZRT2AE8ismYpepCwXVTGncffdzlvu+l3hM lb/ X-Received: by 2002:a05:6a00:4216:b0:82c:24d5:63e6 with SMTP id d2e1a72fcca58-842b0e619camr323397b3a.15.1780605405545; Thu, 04 Jun 2026 13:36:45 -0700 (PDT) Received: from Ubuntu.. ([49.37.171.82]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-842828fe634sm7118257b3a.52.2026.06.04.13.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2026 13:36:45 -0700 (PDT) From: Manish Baing To: perex@perex.cz, tiwai@suse.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@tuxon.dev Cc: linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, manishbaing2789@gmail.com Subject: [RFC PATCH 0/2] ASoC: atmel: ac97c: Fix IRQ handling sequences Date: Thu, 4 Jun 2026 20:36:21 +0000 Message-ID: <20260604203623.162640-1-manishbaing2789@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series addresses two hardware initialization and teardown issues in the atmel_ac97c driver flagged by the Sashiko AI bot. The original report can be found here: https://sashiko.dev/#/patchset/20260530052812.115994-1-manishbaing2789@gmail.com?part=1 - Patch 1 moves request_irq() to the end of probe to prevent a null pointer dereference if an interrupt fires early. - Patch 2 reorders the teardown sequence to free the IRQ before disabling clocks and unmapping memory, preventing a use-after-free. I am submitting this as an RFC because I do not have the physical hardware to test these changes, However, my manual analysis indicates these are valid bugs, and the series compiles cleanly with W=1. Manish Baing (2): ASoC: sound: atmel_ac97c: Fix IRQ handler null pointer dereference ASoC: atmel: ac97c: Fix use-after-free on driver teardown sound/atmel/ac97c.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) -- 2.43.0