Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp913061rdb; Fri, 1 Dec 2023 01:48:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZfXAC1j8E/IdLBci4v7+rMygCYwwX2H1G/OczJItYo+WVGJOFb+UoYDadWPuiAW/AnQv5 X-Received: by 2002:a17:902:ec89:b0:1cf:bd98:6357 with SMTP id x9-20020a170902ec8900b001cfbd986357mr21835626plg.34.1701424121882; Fri, 01 Dec 2023 01:48:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701424121; cv=none; d=google.com; s=arc-20160816; b=Nc1S4Z1IwFNk8lAGyPa0PRfATCLkNbEy/qlZAbXTW7ho/NmktgOjSrMxt17+FHcZcU mFmMwtpRvbasJt4OC2/xbk1UYoLZRdbIrtYDlRytKIliSgwC8j6MqmFSab1ZoynYwXZC xlS0XFXqmZgslbyMWeN4zfo9iVvp8nyvtMqZUL2y7CrmBJ0K1B9S3VTTcOc72OJFczIc oYyYcFnIqgxKRR32SjtbBli3y6iVtkJI134oKwBVvvPIrh70ACggymC3sdi0kvSmL0/w xof57EZJePtmJFlHwUcFewSTxH5RLwDarvWgtB7PVhYH/AWxWcrFh5ANGPlHrNks8va2 bSeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=4WhFDgKAhAPbbwf0xFT83MP21uSfOWypqQrtqeFNSBo=; fh=8dGxMbuJFEL5hxPQ5h9hBu647A6oFNmggQplMYdmJDM=; b=XkrXVfvNeFqxUeXNxQLvFLqEIs+3/1u8DXw7JTNmrET49BfWvoGszpTV+0RWJLZUyq s8PJ29WlHBpIYsuHaLgiYDjLCMZZbUOfCu7nuK24FNtSix+ORbkn2UTBqZcMjgE8YyUf 1jUHCv71fzbwPpnFraYizckLEMQuT2tOmW0Qz/29pSEqf6q7utmbk3YsKn6mCyVlxJiZ NawKtGw/lldxgWepnrWNDVUBXYwV+c9MSZoNn+p3jnBnYD5BBSBWTQe5Wx1pJO4tf//+ /tcr8v4NqvdGMwBUNbq75c/nY3iWBsPBQB9bj6dyE8VrlnoaPXLscpHUnTF4QScV/Ern mvhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q7-20020a170902eb8700b001cffce3a2e2si3031093plg.426.2023.12.01.01.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:48:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C678D83AE430; Fri, 1 Dec 2023 01:48:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378104AbjLAJsM convert rfc822-to-8bit (ORCPT + 99 others); Fri, 1 Dec 2023 04:48:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378091AbjLAJsK (ORCPT ); Fri, 1 Dec 2023 04:48:10 -0500 Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D7EC10F9; Fri, 1 Dec 2023 01:48:16 -0800 (PST) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-5d4f71f7e9fso2523777b3.0; Fri, 01 Dec 2023 01:48:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701424095; x=1702028895; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CsfboZkfhqktBfIu4wv+2D4aDy9AZlINafvD6AXCGg8=; b=pKwTF72s9gnGjzukaRyc2BshiUOk7pMAp57UyIcnyCpCQIKeqBPwQBIK2623ny+0Hw 4B8JxvM2ENRvdWIKYrf3e/RUVvRtIut4wFpm/9OtCUfh6C3znYAmr1McERcmHhRZe7Ha 0hp0uHVUzn9vly5LVsk7dxdEvrQ1RpxA0xc/2swnyKhAa78P1fyZXRXFzc+sknwy2mtx ba5Ce/cBmsOOBfnnTMO271efp4bq74hXZ1Ac6GLW24ZVy1RWGauvlyjU78Tl0PI+ynZ8 QliEeZzn4F1Jogt0GKf0Grw4TdFiitJL8tW03OqylTlOjW1sRWv38aByKijygCWyBWZt N2ow== X-Gm-Message-State: AOJu0Ywt7eV4V0q8Khxpo+1ig2Pn1EHtZVIU75KemJ9lbLAeiyX8EeAC 32Dfj5hw0n8M5uOlWXekb2rL4fHrcqiLxA== X-Received: by 2002:a81:a786:0:b0:5d0:6e91:d6bf with SMTP id e128-20020a81a786000000b005d06e91d6bfmr15487746ywh.21.1701424095325; Fri, 01 Dec 2023 01:48:15 -0800 (PST) Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com. [209.85.128.171]) by smtp.gmail.com with ESMTPSA id b123-20020a0df281000000b005d3f531a37asm442709ywf.85.2023.12.01.01.48.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Dec 2023 01:48:15 -0800 (PST) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-5d4f71f7e9fso2523487b3.0; Fri, 01 Dec 2023 01:48:14 -0800 (PST) X-Received: by 2002:a0d:f687:0:b0:5ca:eca:700b with SMTP id g129-20020a0df687000000b005ca0eca700bmr22443542ywf.52.1701424094073; Fri, 01 Dec 2023 01:48:14 -0800 (PST) MIME-Version: 1.0 References: <20231129063730.31184-1-liuhaoran14@163.com> In-Reply-To: <20231129063730.31184-1-liuhaoran14@163.com> From: Geert Uytterhoeven Date: Fri, 1 Dec 2023 10:48:02 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] [sh/highlander] psw: Add error handling in psw_irq_handler To: Haoran Liu Cc: ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:48:39 -0800 (PST) Hi Haoran, On Wed, Nov 29, 2023 at 7:38 AM Haoran Liu wrote: > This patch adds error handling for the platform_get_drvdata call > within the psw_irq_handler function in > arch/sh/boards/mach-highlander/psw.c. Previously, the absence of > error checking could lead to unexpected behavior if > platform_get_drvdata returned a null pointer. Can you please tell me how you detected this issue? Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds