diff options
| author | Alexander Aring <aahringo@redhat.com> | 2025-08-14 11:22:14 -0400 |
|---|---|---|
| committer | David Teigland <teigland@redhat.com> | 2025-08-14 15:16:05 -0500 |
| commit | 8e40210788636619404871df07445fa4590138b4 (patch) | |
| tree | e9177d8fe60f51d800dd0c6cb3d27d0089be98a4 /fs/dlm | |
| parent | 8d90041a0d285044b89629f539ca0685e156848b (diff) | |
| download | linux-8e40210788636619404871df07445fa4590138b4.tar.gz linux-8e40210788636619404871df07445fa4590138b4.tar.bz2 linux-8e40210788636619404871df07445fa4590138b4.zip | |
dlm: check for undefined release_option values
Checking on all undefined release_option values to return -EINVAL in
case a user is providing them to dlm_release_lockspace().
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
| -rw-r--r-- | fs/dlm/lockspace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 8eadbf0fdf17..ddaa76558706 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -797,6 +797,9 @@ int dlm_release_lockspace(void *lockspace, unsigned int release_option) struct dlm_ls *ls; int error; + if (release_option > __DLM_RELEASE_MAX) + return -EINVAL; + ls = dlm_find_lockspace_local(lockspace); if (!ls) return -EINVAL; |
