From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (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 C43E119CC27 for ; Tue, 12 Aug 2025 12:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755002047; cv=none; b=neF5MGWI5TaBQhrZWPglH2eq2VdVAlhajW87wgkMiw0YTxLOcIKZqOAjQxE3quIGF2fn8COOtie/es4My5gpjeE0bBL1EL+Y9BIAqaDN8d7GYucRGdkmOqQqrzJp9oLXYHC1Mg237a6m5uI3KfBmeIxMlftoZ9vKjuFc8nydKPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755002047; c=relaxed/simple; bh=WV2SkEQ4VMzlopidLpTTX/8COLF91igRdzaI0QToov4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=njdlkErrzVjpbdLhSAHDjbMPPrNUvJHeAJe2tq/jd8Hm7DHnvp5A4Awq5frENXuJ26iYUrvrWgiUi8qMVj7x0/CMrqp8k2jglA/z/mnf9BmdG4Nj9E18i/Lj5pbF0xHbFunL9/hb42J5F1wuhZcIz3iDiAX4i4RliZ1oS60vKYo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=pkiRdiEY; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="pkiRdiEY" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1755002030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WV2SkEQ4VMzlopidLpTTX/8COLF91igRdzaI0QToov4=; b=pkiRdiEYCqbf5ruhEHKIqqlCmZCi0D+5npJY5c+stw8l0p+KUwi0z5fpm9eb8seimKdFy/ M3Mxdqm28WgZRYnTTASbCDfniSuJtKsi3W4NxZeJTWgUrQEQjW+xbbwXwQr0pA4WhkNBcN sDYUtJyQ/RJZG3jnIbhChvhw2Zn0C/Y= Date: Tue, 12 Aug 2025 13:33:40 +0100 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/6] can: esd_usb: Fix possible calls to kfree() with NULL To: =?UTF-8?Q?Stefan_M=C3=A4tje?= , Marc Kleine-Budde , Vincent Mailhol , Frank Jungclaus , linux-can@vger.kernel.org, socketcan@esd.eu Cc: Simon Horman , Olivier Sobrie , Oliver Hartkopp , netdev@vger.kernel.org References: <20250811210611.3233202-1-stefan.maetje@esd.eu> <20250811210611.3233202-2-stefan.maetje@esd.eu> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: <20250811210611.3233202-2-stefan.maetje@esd.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 11/08/2025 22:06, Stefan Mätje wrote: > In esd_usb_start() kfree() is called with the msg variable even if the > allocation of *msg failed. But kfree() works fine with NULL pointers, have you seen any real issues with this code?