Skip to content
Commit adcd459f authored by Andrea Righi's avatar Andrea Righi Committed by Amir Goldstein
Browse files

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: default avatarAmir Goldstein <amir73il@gmail.com>
Signed-off-by: default avatarAndrea Righi <andrea.righi@canonical.com>
Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
parent f01d0889
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment