[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6156fd13fab5131c13b76acc84cb72e3c8b69271.camel@sipsolutions.net>
Date: Wed, 05 Nov 2025 13:19:41 +0100
From: Johannes Berg <johannes@...solutions.net>
To: Ally Heev <allyheev@...il.com>, Miri Korenblit
<miriam.rachel.korenblit@...el.com>
Cc: linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org, Dan
Carpenter <dan.carpenter@...aro.org>
Subject: Re: [PATCH] net: wireless: fix uninitialized pointers with free attr
On Wed, 2025-11-05 at 17:20 +0530, Ally Heev wrote:
> Uninitialized pointers with `__free` attribute can cause undefined
> behaviour as the memory assigned(randomly) to the pointer is freed
> automatically when the pointer goes out of scope
>
> wireless doesn't have any bugs related to this as of now, but
> it is better to initialize and assign pointers with `__free` attr
> in one statement to ensure proper scope-based cleanup
Yeah but ... eww. Please read things like coding style guidelines before
you post patches.
johannes
Powered by blists - more mailing lists