From patchwork Fri Dec 17 20:27:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Shtylyov X-Patchwork-Id: 12696731 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8CF3C433F5 for ; Fri, 17 Dec 2021 20:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XcUta6DFCjz4iVcdFEHePHeCjprbzS81phEkJ2v4PzA=; b=DKEWb5WswrQNrb 0nquX3nmnHSgRSjDt5BCsVeYZTAhC2Av5YXq6GTzgNft4f0/X7BwJAkX6qMlbT4+bHqvLyqs2jq+4 /Zj3gvmJe1Dzf7MfYsVfDAAV3phJ++b3GsgGdRTlUgf9UmTfbfyzASg1dnFbM0DCJN4lddJA6XNRn WXtP+wqW6pkoS91cvdXcW+/kUhNJhKIOq35zFMqzEpiqrn0az4n3NBJevYnKHf/9oRwlLKFOLv6z+ 2cRPclB0jlvnaKy2uA6uTLI4zfwPaIABwim24IeWecqtfOh/p8gieymJB8zTJqq8RVA5SYLvT9zY7 qge9jZZPiCSrfHPT5fEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myJpf-00CHAC-Fv; Fri, 17 Dec 2021 20:27:59 +0000 Received: from mxout01.lancloud.ru ([45.84.86.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myJpE-00CGzV-LE; Fri, 17 Dec 2021 20:27:35 +0000 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout01.lancloud.ru 5962720CF560 Received: from LanCloud Received: from LanCloud Received: from LanCloud From: Sergey Shtylyov To: Ulf Hansson , CC: Neil Armstrong , Kevin Hilman , Jerome Brunet , "Martin Blumenstingl" , , Subject: [PATCH 0/2] Add IRQ check to the Meson MMC/SD drivers Date: Fri, 17 Dec 2021 23:27:15 +0300 Message-ID: <20211217202717.10041-1-s.shtylyov@omp.ru> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211217_122732_910777_5AB230D1 X-CRM114-Status: UNSURE ( 6.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Here are 2 patches against the 'fixes' branch of Ulf Hansson's 'mmc.git' repo. The affected drivers call platform_get_irq() but forget to check for the error case and blithely pass the negative error codes to devm_request_threaded_irq() (which takes *unsigned* IRQ #). Now stop calling devm_request_threaded_irq() with the invalid IRQ #s! Sergey Shtylyov (2): mmc: meson-mx-sdhc: add IRQ check mmc: meson-mx-sdio: add IRQ check drivers/mmc/host/meson-mx-sdhc-mmc.c | 5 +++++ drivers/mmc/host/meson-mx-sdio.c | 5 +++++ 2 files changed, 10 insertions(+)