Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp389458lqh; Tue, 7 May 2024 02:13:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPm15txKv2LYMaVTEfO+GHdmi3vH3USLrbb5GXBv/UhJ/nLDg2Jie35+YtgVWYN2lM35Wx906olt4VaPkt0dlcjcFXYVvKm/F5jn9Gwg== X-Google-Smtp-Source: AGHT+IE/pDocDdqflqzv8F/BddxiK+y7U/4I2EktcfqR9XDww9RHe9r6qcSGKtAN872OoUh2IT5w X-Received: by 2002:a17:903:32ce:b0:1e4:7adf:b855 with SMTP id i14-20020a17090332ce00b001e47adfb855mr15830644plr.35.1715073218666; Tue, 07 May 2024 02:13:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715073218; cv=pass; d=google.com; s=arc-20160816; b=mrQco07nB1fDyiLIOamETV84J62qSqy6ostxrGVq0auNGLeLC2Sk0k8n0t1RiCIdrm PmESfYx0BymfxBkX+TAQKy67PGWNEC7Yn3qY16rnFW+dBuHSywJdv+Oxt264Ns5+e/5p FHNG5CySnHsJwjPqY6kUneM+bi8ps7D4hdseTCZQWpJiKXA08LxqSw+ajB73qoVia3hp y7gkfOPPdDbTCTvjvPRNPkgY9zeB6V9E4EWdZ2c6W8pM1jizePhsV7CUk76//OZ8FytV i/opCpBxpw2wdiOwIdFh1mCauXko5dLVG78dIqrHGa02OAwEw+IuBPcJFyxwZfdjRiih rvKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:subject:references:cc:to:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=+4X1Dq3PhXLw4Pod25FOL6S3U5Sov1WBLcQo1sxZYZM=; fh=BWK8UiygRxIv7yfODdqnh4RcCRoNAHqWKCOLE730AKo=; b=T+sCe0m29AozlVm8kZncP/kPRV/g2va4bN3dZfkYhvQ+5AX5aF/zG28QkpDIutsqsE UWdQ7yG8wT9Xqqrp56L3FRBkguBMAG7wbIaEMM0kZ/a9dOvLdqODwAg1+VJVWH0X1Jnt nNMHB6OQmeVpzxBfrzZ96UYxHk1kD09+MNQEht3Vm4pc5T+pmtzu1amQ0120PZSCP5DG +F57kt+CJAXfjvlzO+xFMkRvdKXu2PzgSpcxTOHFIZG7Cby3Oisx+ZnH++72EgZTAuTC qRz6xkp6eVBi6XpodqyWp3Z5zBccFYqySajDlr1AydqKE8bc1ab7r806SjEFhwn5BNrk lD9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=Lsypbf1j; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-170917-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d3-20020a170902aa8300b001eccc6d3633si9770069plr.412.2024.05.07.02.13.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170917-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=Lsypbf1j; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-170917-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2FFB0281E86 for ; Tue, 7 May 2024 09:13:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 222DE14D708; Tue, 7 May 2024 09:13:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="Lsypbf1j" Received: from mout.web.de (mout.web.de [217.72.192.78]) (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 D844A14D451; Tue, 7 May 2024 09:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.72.192.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715073207; cv=none; b=DXdTfhVm7iy3T3Ofnv/fUuP3j9KT+ItNnrJYgy6zdl6u//7To8UI7ehSA9rVIYNhPsV9n4cx7IOOFaQstXc1FHc1RgTKh7IGmSg+9NmHjd64wghR5jKuGTiytIjEwIk2PwIJWjeWlb1g8Q5hp2gtVx6dB9HBjqtsUwagd6tGLqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715073207; c=relaxed/simple; bh=jciq9IMISLKFIamOPsw1NfQECykrFsPqx3KmjUlEdX4=; h=Message-ID:Date:MIME-Version:To:Cc:References:Subject:From: In-Reply-To:Content-Type; b=NtUvr1vcSxFn65QHgHE30/myAVTL/RSVPyddIgcSuH4cHwTryQRJhdlNmzdScG/De4iA3kWURkWu+/8FAKfP5UGA8IKjYOFkrBB/mexVNHmLc6fnU3IOUm/70OEeqavSW0IZRkP4u2BJz+BuaDaDEJfF1LjMpcdFTYW2OLrQeRM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=Lsypbf1j; arc=none smtp.client-ip=217.72.192.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1715073171; x=1715677971; i=markus.elfring@web.de; bh=+4X1Dq3PhXLw4Pod25FOL6S3U5Sov1WBLcQo1sxZYZM=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:References: Subject:From:In-Reply-To:Content-Type:Content-Transfer-Encoding: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=Lsypbf1jmYJ/3dYyOzWO47ogXcomiyIbPSIKEpbKZYiagxlnvrpdl68by1wvJVii waG7/J617uSkY5teCsV7kXa9pO78yhKVxbi/eZtc6xPrh25yxtpSUWjFDji0DHDUT BJuCEy5TgCDqeA5n/iRvynZypoVTuFYWSVK3EtzGCtZyhtRarOhpW4UjWn4DOawj5 Rut02WyximjkE478JJLLCneHAUXrksDQSKeUcNnkZe5kFSMGiIaF3jLqweW6AKoqm LvRAWU3LV1HJ2HGQZVGKE+A/qVoFWGCxO/yARzKcxhntrtT84aQWSTxAQ04CDNZhm IekJL4iVK2l6NGyeVA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.89.95]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MRW6Z-1sIDOI1r6L-00Mx00; Tue, 07 May 2024 11:12:51 +0200 Message-ID: <4c09a28c-0336-4440-94c3-15337726ccd4@web.de> Date: Tue, 7 May 2024 11:12:47 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Dan Carpenter , Duoming Zhou , linux-hams@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , =?UTF-8?Q?J=C3=B6rg_Reuter?= , Paolo Abeni , LKML , Lars Kellogg-Stedman , Simon Horman References: <86ae9712b610b3d41ce0ce3bbe268c68de6c5914.1715065005.git.duoming@zju.edu.cn> Subject: Re: [PATCH net v5 2/4] ax25: Fix reference count leak issues of ax25_dev Content-Language: en-GB From: Markus Elfring In-Reply-To: <86ae9712b610b3d41ce0ce3bbe268c68de6c5914.1715065005.git.duoming@zju.edu.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:9zLGST24T1eONVB08IqDf7NEIsQFZaKYLVN1oNvMm8kncuGCQ4c sPcOAmZzlUSJ8facNH7xOCdJdGUtfYpDDvghr8bCFyVea7D+YwodAYGxwIBqj+sb8Me184W LqBWpbf96Cja5WkbcbhQclv2y1Po3vNXDexdkxzh5g8seThJ4lXy90EgkoRrei+4PXe2Jzc zt3SkmAnrRG6i7vKhk31A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:f1IMFT+klaM=;mpsLtyLksxrhQFDRfTgUO5J77be f3OnZ9iSLu6xSKD6KDE8ZtYJkLzlGdTQiE7n2eBXwUTxHrCMQUaXMi1VztIZvGZMtg/AZnhNR 3AA+m4QgT4zAejN+f96U9vMLF5maGdP/1j1Hj0lbCYC9WQIw8tcfyCVQWGFVUhU+E3FT7WD4y pAkFrN2TpxzLsNQxTLAMsp9Jq9ETpQM0I+QXDJYicf9mf2Dt0LM3ebq0n3cCcxUyucRrBKijt 0ezMcE1SIyObBP9fTTOLMQeu2IFMmkfyexuz5ylhCS9zHAUIcqrb9WrSQ7PyG3MdDW/8BgQUe yXsHm9few9pcUEf9o2JlUhkO+AlMiaBOjtXQS+zxrBERaa81fxzojcxCJnilhtmCC39GJw3p+ WjuvGzqJLVbyfgQBn0T2VBPBD/8VSnZWW3LWBObrlqyrwG7iVRYPcOLuh4k+yprqxL/0c61y3 kF3B5J7wF6F5VkD5wecJ+MnrFHKoFWjojDwToSIJYvS/6Knc3XUkeOUdDagY81MwQHS5fkzAt T7OpWmyzcQo0KT2186DdHDDRA3cKiRiVHNA+pLGH7stilgIMOb8rV10Hf9jgNcO9YkiwbZZXm fcwp7EtNxwNcb7VgjQYJOGhCD0EsETmSfXZC7S977H2zbbDWYZ9oulXl7DDWmUVPk+/dXiMhE A3B9b9O+dvnMb/96iHXzdGC+QDGf7DsYj6ZUeZ/iNVARvv+SZwZz/nRtZqzZXpIt94fDh2RA8 K9BfgoWmMkyom9JF0P2MH9gT84zaSPcA4uWX3ZtkKLuEOzopxIm5VvcuI2JFP1kZbErJ+1RVp FiWpyI3yBjaFyYkZBfd3dI4Q1oFVwpayIYQWhSZW+tqU4= > The ax25_addr_ax25dev() and ax25_dev_device_down() exist a reference > count leak issue of the object "ax25_dev". Please improve this wording. Suggestion: Two function implementations contained programming mistakes. Thus =E2=80=A6 > Memory leak issue in ax25_addr_ax25dev(): > > The reference count of the object "ax25_dev" can be increased multiple > times in ax25_addr_ax25dev(). This will cause a memory leak so far. =E2=80=A6 * How do you think about to work with indentation in such a description for item enumeration? * Would you like to add imperative wordings for improved changelogs? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/= Documentation/process/submitting-patches.rst?h=3Dv6.9-rc7#n94 Regards, Markus