[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <5FD0BDD8-3EC8-4A22-92F3-1235E1E44CC5@holtmann.org>
Date: Mon, 14 Feb 2022 15:18:09 +0100
From: Marcel Holtmann <marcel@...tmann.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Johan Hedberg <johan.hedberg@...il.com>,
Luiz Augusto von Dentz <luiz.dentz@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
BlueZ <linux-bluetooth@...r.kernel.org>, netdev@...r.kernel.org
Subject: Re: [PATCH] Bluetooth: 6lowpan: No need to clear memory twice
Hi Christophe,
> 'peer_addr' is a structure embedded in 'struct lowpan_peer'. So there is no
> need to explicitly call memset(0) on it. It is already zeroed by kzalloc()
> when 'peer' is allocated.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> ---
> net/bluetooth/6lowpan.c | 1 -
> 1 file changed, 1 deletion(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
Powered by blists - more mailing lists