From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F606C433EF for ; Thu, 23 Sep 2021 20:48:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 23B3A6124B for ; Thu, 23 Sep 2021 20:48:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229753AbhIWUtz (ORCPT ); Thu, 23 Sep 2021 16:49:55 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35568 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbhIWUty (ORCPT ); Thu, 23 Sep 2021 16:49:54 -0400 Received: from zn.tnic (p200300ec2f0d68007248b45e3de00aaa.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:6800:7248:b45e:3de0:aaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8AE7A1EC0390; Thu, 23 Sep 2021 22:48:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1632430097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=KWL4a0lkxnpvQ1ULF1NDI0X+2x+ytAENqWmiXGbtL74=; b=nirua982t+sIDD3AZXBBjNvLsAE1bnm00Tk2TmZw9vHyBxOUeZYXocQnrnGiMMgsqNJE87 ujAAcrnIauT/WNJXZYmG2jRrVK4y+DzXxKTzRLPMBfjleMZ8kRB7+uYFtSwACE6Ew2OpsS 1V0jRHN+QHxTEDmRP1s1P3Yv/M5+kTw= Date: Thu, 23 Sep 2021 22:48:11 +0200 From: Borislav Petkov To: Vasyl Gomonovych Cc: rafael@kernel.org, lenb@kernel.org, james.morse@arm.com, Tony Luck , Randy Dunlap , Yazen Ghannam , Robert Richter , Tom Saeger , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ACPI: APEI: Check NULL argument in exported symbol Message-ID: References: <20210923195612.25949-1-vgomonovych@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210923195612.25949-1-vgomonovych@marvell.com> Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Thu, Sep 23, 2021 at 12:56:10PM -0700, Vasyl Gomonovych wrote: > Exported symbol apei_hest_parse is external API > and should check pointer argument Why? All users pass a proper, non-NULL function pointer AFAICT. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette