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=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 406FFC432BE for ; Tue, 27 Jul 2021 08:06:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2574B603E9 for ; Tue, 27 Jul 2021 08:06:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235902AbhG0IGu (ORCPT ); Tue, 27 Jul 2021 04:06:50 -0400 Received: from muru.com ([72.249.23.125]:55552 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235921AbhG0IGs (ORCPT ); Tue, 27 Jul 2021 04:06:48 -0400 Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 1D55580F0; Tue, 27 Jul 2021 08:06:55 +0000 (UTC) Date: Tue, 27 Jul 2021 11:06:36 +0300 From: Tony Lindgren To: Kevin Hilman Cc: linux-omap@vger.kernel.org, Tero Kristo Subject: Re: [PATCH] ARM: omap2+: hwmod: fix potential NULL pointer access Message-ID: References: <20210720184710.17726-1-khilman@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210720184710.17726-1-khilman@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org * Kevin Hilman [210720 21:47]: > From: Tero Kristo > > omap_hwmod_get_pwrdm() may access a NULL clk_hw pointer in some failure > cases. Add a check for the case and bail out gracely if this happens. Applying into fixes thanks. Tony