Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2265264rdb; Sun, 3 Dec 2023 09:12:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEW8qKTx02/3KDCnJxU7vOoYf0IlDvEILgZfkiHWZK56hwqSek6AzPJIiJxzkWAYVo4UCoL X-Received: by 2002:a05:6a20:42a2:b0:18f:97c:8a27 with SMTP id o34-20020a056a2042a200b0018f097c8a27mr4486786pzj.82.1701623551602; Sun, 03 Dec 2023 09:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701623551; cv=none; d=google.com; s=arc-20160816; b=tRYt1X0Q+KBEZ/2JGUnPqfX9IJo0gqIXF98e6BSLPm9Ythem/2dysKfgUN7DR/Ps0o V6+nynkG5aDUdnkQZgr2VCaNTmSKFyo7e8CJiZhfr6bJ32OMyLG7Mfxu1pkCt73tIJkK k+DH1jA/49q+DWzCLjUbB1alZEVs6JDhIzC3TOkeP/tAzLmmakZMR4vSpIuAzmIrRMUr U2f9TnvTX8n87FmA9BjfM7uCIDu9ljr57KEz2ScqMuxpl4b5xS+wEPPe9AePxNzq2vrH KyZz9Ff1YdfYleZ6US7SagdwX8Qjwn6DD3XS5Bv0s3RMnssqLcWbVeZpyVzknpzKM6hI +4zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=R2egft6ySmqioxdZtumOqW29hb5JsXROm0aRahntdqg=; fh=nf3L7/sfVB6ZSC6xLV6ugvMuRpjJN2oK/+o8mSer2Hw=; b=mf2HrYWzhKuTfsMQogq4Ohi+3x+S7J9NbLi4whLmbmqS4KNLKibI1kwiCWf+5WCSj0 c8xRVgi7zA4owGwXv7N9vr3ovR5xPKdFcEBItf0dQtw4IeyTwihrPVJ9y2msi7fQ0a7L bDJcwn3kOKkzVcKOvS0wOe5qKYfshtQczE7TCdZ0XoH97rxrHJDi+GMxCqqnJ88GzjjN tW1nb8IBnbV16KOAk3OAFCqhh06xunjTt5dD+k8RJ2mVDjZtZDA16yC7oDXYeH1iDNMk QMtmPS4JhIODSm8Yir102NNOluaBudhSHXBEXwNfeDTozlzond7gc7r3U8BtwOyFCkcu FdyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SrkCvPot; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s21-20020a63d055000000b005c16f26b1b4si6321188pgi.440.2023.12.03.09.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 09:12:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SrkCvPot; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 7ACDA8069D8F; Sun, 3 Dec 2023 09:12:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229739AbjLCRLf (ORCPT + 99 others); Sun, 3 Dec 2023 12:11:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCRLe (ORCPT ); Sun, 3 Dec 2023 12:11:34 -0500 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC092EA; Sun, 3 Dec 2023 09:11:40 -0800 (PST) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6d880219f01so149605a34.0; Sun, 03 Dec 2023 09:11:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701623500; x=1702228300; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=R2egft6ySmqioxdZtumOqW29hb5JsXROm0aRahntdqg=; b=SrkCvPot0xNiz1D6lmw2rhqMLzMFMraT8XLVOAhqN9OHByE+IHEw48YhrFJ5QmBt/5 RkCE4QNGwgFQRlfvFAIedjqvbNqHDQHcYmJ01ZYnM+7MokDO/oMC77KqVmkCDcKgHIUA tooD8nPQsMqdLuGWwY2DDyXR0M1GJmr852gbpxvKDphc3QzK4a7Z6m2VM3GiwVjfjp5a a1IfMQcZAN1MfaDutXiDLCkvtjs9oAhTIYLrV05mpWjdcfQxSljOi+Ia9bVIVjFUVOWX 2Wnh56SM1s24NxzjW+JamgauiWg0UYWN9xHln+9TQTfDR1VtGm83v/POZT+j3uYl6VRC rcDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701623500; x=1702228300; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R2egft6ySmqioxdZtumOqW29hb5JsXROm0aRahntdqg=; b=VpsnaijCefwKUtMYJJJSMaG7UlsgQqjdAKdS81+mZijK6W13r89zLdem38RWSwNVQm CqybdypSAsvYLNtAt+nDKlC0n6Kz7sEbpHu+0KZngGKT9zJuD1r8JxxX3zNjkp0x+aMc 3KzDgw6+aKdfT0NJ+ntyhJ/XXenk9goZnTsBTsRhDoG1D7G+TQN8+p2PQpsBN/tmk2jL l3un82RY0fnIgw6kGq9YotJu0GE1H6DRlSwGH5iW1dJdtY9OGSqUBlVYB3zStmcUH07d uGz2qKYYiLMFIWJWjfo+IglQiJ/uBzowfovu3ljobpAXPTP1hGty/T0bM05vFl4fxzuR 42KA== X-Gm-Message-State: AOJu0Yw33PJdm4vcveuvV5aWFVTW6HgwcoeKqNlYDAy6ERxwama81fD+ ah4u3tDzKr93WFgfpImw5ZtYtSh/UCs= X-Received: by 2002:a05:6870:e86:b0:1fa:f177:625b with SMTP id mm6-20020a0568700e8600b001faf177625bmr1051041oab.8.1701623500073; Sun, 03 Dec 2023 09:11:40 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id wc12-20020a056871a50c00b001fa3c734bc5sm2193237oab.46.2023.12.03.09.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 09:11:39 -0800 (PST) Sender: Guenter Roeck Date: Sun, 3 Dec 2023 09:11:37 -0800 From: Guenter Roeck To: Christophe JAILLET Cc: Jonas Malaco , Jean Delvare , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Aleksa Savic , linux-hwmon@vger.kernel.org Subject: Re: [PATCH] hwmon: nzxt: Fix some error handling path in kraken2_probe() Message-ID: <18eb73c8-5fee-4b3d-8a74-54bedef487e1@roeck-us.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 03 Dec 2023 09:12:30 -0800 (PST) On Sun, Dec 03, 2023 at 04:24:05PM +0100, Christophe JAILLET wrote: > There is no point in calling hid_hw_stop() if hid_hw_start() has failed. > There is no point in calling hid_hw_close() if hid_hw_open() has failed. > > Update the error handling path accordingly. > > Fixes: 82e3430dfa8c ("hwmon: add driver for NZXT Kraken X42/X52/X62/X72") > Reported-by: Aleksa Savic > Closes: https://lore.kernel.org/all/121470f0-6c1f-418a-844c-7ec2e8a54b8e@gmail.com/ > Signed-off-by: Christophe JAILLET > Reviewed-by: Jonas Malaco Applied. > --- > Closes added to please checkpatch, not sure if relevant here. One of the few checkpatch warnings which may be ignored for hwmon patches. Sometimes there _is_ no report of a problem or, like in this case, it is reported in some unrelated exchange. I don't drop it if provided, but I don't require it either. Guenter