initramfs: Use struct_size() helper to improve dir_add()
Use struct_size() to calculate the number of bytes to allocate for a new directory entry. No functional changes. Signed-off-by:Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by:
Christian Brauner <brauner@kernel.org>
Loading
Please sign in to comment