]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: Replace offsetof() with struct_size() in ovl_stack_free()
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 3 May 2025 11:52:44 +0000 (13:52 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 5 May 2025 10:47:57 +0000 (12:47 +0200)
commit7314166ee7592513c77cfbb8ff579f376039f9c4
tree3fedef06cc2ec6748298af8b4e9f76e080586659
parent5aaf6a8cc3305e1000417f6fac9d131c47db9117
ovl: Replace offsetof() with struct_size() in ovl_stack_free()

Compared to offsetof(), struct_size() provides additional compile-time
checks for structs with flexible arrays (e.g., __must_be_array()).

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/util.c