Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp440040lqt; Thu, 18 Apr 2024 23:34:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXspu7WGn2o/5kcweqQsIoSZwxvc0brFDK/NBn2RdlG/IYew3I/UD5ucUtfGf2MMUUek6dzAodRpSXvlWCKtqZyJVdWpKpnzkRuNhZWsA== X-Google-Smtp-Source: AGHT+IEqybK0oMBrU6qUdW8Ha5duQRrL6ngBQf18rULacrHLC+eNMfPiLNYvbfIK92GT3r0/Kg8g X-Received: by 2002:a05:6a20:5652:b0:1a3:6a02:6758 with SMTP id is18-20020a056a20565200b001a36a026758mr1109783pzc.27.1713508459695; Thu, 18 Apr 2024 23:34:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713508459; cv=pass; d=google.com; s=arc-20160816; b=vEvjLtRQV6Q78w9AnhrN83GCX5RC7uCuFgIHK2OP3NhZCofsVosVZegJHabSuo5D5M ixvLjMkKyPWmADuOhLnjs3fbwGY+CMKdpq9vlYjgvccOJuodUb3QQivzjVO4xWh1uhQX J9tL/XMLMTEMc7PN3+LRZwwTOskQbVafgY53d/v+8C5fUGCgHypEYDDaFv3GVxrZ6hFi /Qd+nIrIWvukkZFJaCwIGqSVqCPfAzjS+8F/yknUl5PfRV/DTs272h/MdXE+uoglRIC2 lwObTj6z4rsW84N0RT4KpR6ohILG0OFu3veLc2Xn6cwYbO40IA03kkhQlPalBO13a4ai OZVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TpzQfqQoBe00kg7t++czGU80ZYabhjYxC3WfG9TT2N4=; fh=d6BWMNttNqg36TiJ9ZgHgVrTbZRZgsPOzSKo1FxMu7s=; b=wlOPcuPYxAPEN3IJmYYXNLAiYvp2vsIK9CLCjKWJAOAK5Mebju29OMtsTu77CKyV6t kcX2qyOSpuS+Yk3A4tQ5/RSWwEBacZLOl9TgXTRp4Pf+H71+sNQzML0VRYaccjXiwyP1 FLYv7qABaZIz9amXp+HGYI2Ze/cJZDDjs2Bg587DAL59J2zex5n3efiZGAkq7hGvygOC fHfbBlnVcHAZAk9wyKIwdFSBgevRYhu8DFmd99yQ99/6c5oZB+cdY6ZOixmTrEx1sYRl x3eodqlph0D7F9VjWAzrAQXnlv2tbMtTVGIVhK21fjwsYui5CU8QFWExw7XWz4r84P9m BGpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aICcYNMu; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-151059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d1-20020aa78e41000000b006ecf448a1f7si2811614pfr.16.2024.04.18.23.34.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 23:34:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aICcYNMu; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-151059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 38E5DB22678 for ; Fri, 19 Apr 2024 06:34:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F222383BA; Fri, 19 Apr 2024 06:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="aICcYNMu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EBCF79F9; Fri, 19 Apr 2024 06:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713508442; cv=none; b=g1WDdRpAWoWJqiExH4dlWVXUQX12CCk0dyki93YMgbPD2ck7m4IuwmRDkwSiWQJI9fsGhM/X+6jvaZIKD0MSXTmVgZnrO1FUS5mlDKQwWkH8J6MT48I4OFapPijzVkpO5qG6arLYidAfRJkpU6iySKftJXyyUU8E8M5n53Q6RJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713508442; c=relaxed/simple; bh=V427dVNaf8/qaI8BGACYOJtsWEOTY36TLQHbLwTxGeM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kwzeL2q2jZWO/RSuhCYN/Egu4oCWnLRLJt9uE+aN3fGgv00b00h3owLSBDbZqhPt+kN5+P6LFYWX0Xm3EgNQG+MyRu+E+HJ2kehAo7/4YzHIo7HCJ+rZg+nVORYZhkHKWpD8xotk+4/ZV8o2EmnoPOL0YB3DmR351P5jnTYpPi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aICcYNMu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFB64C072AA; Fri, 19 Apr 2024 06:34:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713508442; bh=V427dVNaf8/qaI8BGACYOJtsWEOTY36TLQHbLwTxGeM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aICcYNMujuqMbFyCMqjvdmwHys4mdXRRmDK9AVcWuVlEXYYGnJjuTpA9TklLC0cIQ ngbJsSJL2HIdFKWRc1sjWF9+FFqCXA8FTqDAD9FDTi9gJVjHy2RAuTEk4opSTIwlvt IxAzIjAK1AH2YbHhjeqeadVt3M6DndkgDvuLSZsI= Date: Fri, 19 Apr 2024 08:33:30 +0200 From: Greg Kroah-Hartman To: Markus Elfring Cc: Wander Lairson Costa , kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, kernel-janitors@vger.kernel.org, Brendan Higgins , David Gow , Matti Vaittinen , Maxime Ripard , Rae Moar , Shuah Khan , LKML Subject: Re: [PATCH v3 2/2] kunit: avoid memory leak on device register error Message-ID: <2024041919-untrimmed-palatable-1350@gregkh> References: <20240418210236.194190-3-wander@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Apr 19, 2024 at 08:15:25AM +0200, Markus Elfring wrote: > > If the device register fails, free the allocated memory before > > returning. > > Can a description variant (like the following) be more appropriate? > > Free the allocated memory (after a device registration failure) > before returning. > Thus add a jump target so that a bit of exception handling can be better > reused at the end of this function implementation. > > > Would you like to replace the word “register” by “registration” also > in the summary phrase? > Hi, This is the semi-friendly patch-bot of Greg Kroah-Hartman. Markus, you seem to have sent a nonsensical or otherwise pointless review comment to a patch submission on a Linux kernel developer mailing list. I strongly suggest that you not do this anymore. Please do not bother developers who are actively working to produce patches and features with comments that, in the end, are a waste of time. Patch submitter, please ignore Markus's suggestion; you do not need to follow it at all. The person/bot/AI that sent it is being ignored by almost all Linux kernel maintainers for having a persistent pattern of behavior of producing distracting and pointless commentary, and inability to adapt to feedback. Please feel free to also ignore emails from them. thanks, greg k-h's patch email bot