[lvc-project] [PATCH v3] ssb: Fix potential NULL pointer dereference in ssb_device_uevent
Michael Büsch
m at bues.ch
Fri Mar 8 07:50:49 MSK 2024
On Thu, 7 Mar 2024 22:02:29 +0000
James Dutton <james.dutton at gmail.com> wrote:
> If one does a NULL check after it has been previously dereferenced,
> the compiler will totally remove the NULL check anyway,
I think the kernel uses -fno-delete-null-pointer-checks.
But anyway, this doesn't invalidate the point of having a NULL check.
The intent of the code was very clear.
So don't remove it.
--
Michael Büsch
https://bues.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://linuxtesting.org/pipermail/lvc-project/attachments/20240308/26f2e6cc/attachment.pgp>
More information about the lvc-project
mailing list