lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <CAOM0=dbwNs1XcnD0i+SrC1S-SNFEGXM5G8QrVCqAxaz=YkAEFg@mail.gmail.com> Date: Sat, 12 Nov 2022 11:47:39 +0530 From: A <amit234234234234@...il.com> To: linux-kernel@...r.kernel.org Subject: Setting variable NULL after freeing it. Hi, I am writing a linux kernel driver for a new device. Is it a good practice to set variable NULL after freeing it? Something like this - kfree(x); x = NULL; Please let me know. Amit