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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 560D7C77B61 for ; Sun, 9 Apr 2023 23:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229502AbjDIXz2 (ORCPT ); Sun, 9 Apr 2023 19:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjDIXz0 (ORCPT ); Sun, 9 Apr 2023 19:55:26 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4B5B30F3 for ; Sun, 9 Apr 2023 16:55:24 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-514156b4976so503861a12.3 for ; Sun, 09 Apr 2023 16:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681084524; x=1683676524; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SON/w6LDQiDETPiGQ/zl8VHnkF1L55Ud/Wk1KLsgG8A=; b=EtGPFhdcuXTvwgsRWu5qu/5US/kBdtVKAhT38aPBS/m83gxoHx6fLpw+0jCs2r+A0E +xkX0G4fBwbc+seWDmAGTQdIF3hyTYtZ4TzAJgSCR6xjroaj+2i9YFyoP2RYVYACR1X4 IYug6Omyv7LMQpAaLlNuuvwkWrk/gifFft6TeTUFdssPykECKxI2sPInOweXB3ppVCpQ rfe2YauA0RXWiA9QPRjbKdMKKcyyje/Qu9Gby8ue37kk26Xlb14MU+0q8rML3VLjCIIr pmrV12JZYVACyCIh7ZcxX1+/DcP3LMqP87hh6T/c5ofy0Q3kRu8TAGTMlkjemqZ23UVZ rvaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681084524; x=1683676524; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SON/w6LDQiDETPiGQ/zl8VHnkF1L55Ud/Wk1KLsgG8A=; b=atSy82SUsZC0ciENaJMFVDxfqwhcZKJ8awO+2UVkCzlB529JGStShqoHq+8GMxJghO bd+bQ3A3op86Fqvzc3XMzUlsujnataJG3pInkYnVXMd8oDAkzf17BY5CbCdRfo0oQpSI iXsX+DZ/Ac44WKF0yP6ajKBJboTZnVuu6MW2XZJmUCaj0JY6Zz6uqj18jx75l7tGRE5K 2MnixmjhniBHfDVQikF92RW3IU5EexadYbk5d4YFABP9R9ic8wOSYUm5dlZ2YWrlO5KP 6jqCRFAW417LUEzUWL86tk2mvGmWuJDmNIX+MDa5NMsWk9PS2iolpqPQGqMevW/FTRSS R5zQ== X-Gm-Message-State: AAQBX9cY7Kmm2QlGkAu6xW328Yyexk1wvlJuPyACHLQc3hHPd3KDNus0 xHYDHL2HrEwvw5uipQMz2C3ocQ== X-Google-Smtp-Source: AKy350bs+7Fe/k1n+5DbGgX3YEcQTx8p4gKmmgjFpwNNT25FSioHdZDpK5OB1qGF465jxSpcBK42dg== X-Received: by 2002:aa7:9ac7:0:b0:5a8:bcf2:125 with SMTP id x7-20020aa79ac7000000b005a8bcf20125mr9106011pfp.21.1681084524282; Sun, 09 Apr 2023 16:55:24 -0700 (PDT) Received: from localhost ([122.172.85.8]) by smtp.gmail.com with ESMTPSA id x25-20020a056a00271900b00636caef0714sm1307236pfv.144.2023.04.09.16.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Apr 2023 16:55:23 -0700 (PDT) Date: Mon, 10 Apr 2023 05:25:11 +0530 From: Viresh Kumar To: Markus Elfring Cc: kernel-janitors@vger.kernel.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , cocci@inria.fr, LKML Subject: Re: [PATCH v2] cpufreq: sparc: Fix exception handling in two functions Message-ID: <20230409235511.7xxqdxsqtflrhifk@vireshk-i7> References: <2d125f3e-4de6-cfb4-2d21-6e1ec04bc412@web.de> <20230403033529.x6n3ihhkypwizq3b@vireshk-i7> <39342542-9353-6a7b-0aa9-f9c294b158cb@web.de> <20230403230432.xeubpa3cc2gt4mw3@vireshk-i7> <68b1988b-987f-fa2b-111e-b1b42f9767ab@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68b1988b-987f-fa2b-111e-b1b42f9767ab@web.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-04-23, 19:48, Markus Elfring wrote: > @@ -337,21 +337,17 @@ static int __init us2e_freq_init(void) > driver->get = us2e_freq_get; > driver->exit = us2e_freq_cpu_exit; > strcpy(driver->name, "UltraSPARC-IIe"); > - > - cpufreq_us2e_driver = driver; This changes the behavior of the code here as "cpufreq_us2e_driver" is used in us2e_freq_cpu_exit(). If some failure occurs after a policy is initialized, and driver doesn't register successfully, then we won't set the frequency to the lowest index of the table anymore. Same with other file. -- viresh