diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-08-15 21:43:20 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-08-23 21:53:16 +0200 |
commit | b5c9d37c7f6051b45b2da70e434e791080dcb53f (patch) | |
tree | a00ad1c818f42b729f2a7027dc4fad1132dd56fb /fs/dlm/lockspace.c | |
parent | fs: dlm: fix invalid derefence of sb_lvbptr (diff) | |
download | linux-b5c9d37c7f6051b45b2da70e434e791080dcb53f.tar.xz linux-b5c9d37c7f6051b45b2da70e434e791080dcb53f.zip |
fs: dlm: allow lockspaces have zero lvblen
A dlm user may not use the DLM_LKF_VALBLK flag in the DLM API,
so a zero lvblen should be allowed as a lockspace parameter.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lockspace.c')
-rw-r--r-- | fs/dlm/lockspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 3972f4d86c75..56c79926e7be 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -416,7 +416,7 @@ static int new_lockspace(const char *name, const char *cluster, if (namelen > DLM_LOCKSPACE_LEN || namelen == 0) return -EINVAL; - if (!lvblen || (lvblen % 8)) + if (lvblen % 8) return -EINVAL; if (!try_module_get(THIS_MODULE)) |