diff options
author | Andrea Righi <andrea.righi@canonical.com> | 2023-05-21 11:28:13 +0300 |
---|---|---|
committer | Amir Goldstein <amir73il@gmail.com> | 2023-08-12 19:02:54 +0300 |
commit | adcd459ff805ce5e11956cfa1e9aa85471b6ae8d (patch) | |
tree | 529a978d9bb82a1e528c5f7fd787a2dd868abc04 /fs/ext2/ialloc.c | |
parent | f01d08899fd7fa808ff9b8d33ca4882ab44d42fa (diff) | |
download | linux-adcd459ff805ce5e11956cfa1e9aa85471b6ae8d.tar.xz |
ovl: validate superblock in OVL_FS()
When CONFIG_OVERLAY_FS_DEBUG is enabled add an explicit check to make
sure that OVL_FS() is always used with a valid overlayfs superblock.
Otherwise trigger a WARN_ON_ONCE().
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'fs/ext2/ialloc.c')
0 files changed, 0 insertions, 0 deletions