]> git.dujemihanovic.xyz Git - u-boot.git/commit
ext4: Fix zalloc()
authorRichard Weinberger <richard@nod.at>
Fri, 9 Aug 2024 09:54:30 +0000 (11:54 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 15 Aug 2024 22:14:36 +0000 (16:14 -0600)
commit107ed84602bb5b77c333e3a4f373db5e62b50c61
treebd95030b932c1bdf64fcf3bf951b8f996451ff99
parenta29805d822c4bffe47b464e1f62fca11c6c2b481
ext4: Fix zalloc()

Currently, zalloc() calls uncondtionally memset(),
if the allocation failes, memset() will write to a null pointer.

Fix by using kzalloc().

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/ext4/ext4_common.h