From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Lynch Date: Tue, 27 Aug 2019 14:26:19 +0000 Subject: Re: [PATCH 1/2] powerpc/pseries: Delete an unnecessary kfree() call in dlpar_store() Message-Id: <878sresn04.fsf@linux.ibm.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Markus Elfring Cc: kernel-janitors@vger.kernel.org, LKML , Oliver O'Halloran , Allison Randal , Greg Kroah-Hartman , Paul Mackerras , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, Frank Rowand , Gen Zhang Markus Elfring writes: > From: Markus Elfring > Date: Tue, 27 Aug 2019 13:34:02 +0200 > > A null pointer would be passed to a call of the function “kfree” > immediately after a call of the function “kstrdup” failed at one place. > Remove this superfluous function call. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Acked-by: Nathan Lynch