Re: [PATCH] scsi: fix uninitialized pointers with free attr

From: Martin K. Petersen

Date: Wed Nov 19 2025 - 23:16:24 EST


On Wed, 05 Nov 2025 19:44:43 +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
>
> scsi 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
>
> [...]

Applied to 6.19/scsi-queue, thanks!

[1/1] scsi: fix uninitialized pointers with free attr
https://git.kernel.org/mkp/scsi/c/3813d28b2b12

--
Martin K. Petersen