diff options
author | Alexander Aring <aahringo@redhat.com> | 2023-08-01 20:09:48 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-08-10 17:33:03 +0200 |
commit | 1151935182b40bbe398905850f6f7f4fbb262e06 (patch) | |
tree | 1a15caa862be793db9bf5413c1620fbe22848cbf /fs/dlm/requestqueue.c | |
parent | fs: dlm: drop rxbuf manipulation in dlm_recover_master_copy (diff) | |
download | linux-1151935182b40bbe398905850f6f7f4fbb262e06.tar.xz linux-1151935182b40bbe398905850f6f7f4fbb262e06.zip |
fs: dlm: constify receive buffer
The dlm receive buffer should be never manipulated as DLM is the last
instance of parsing layer. This patch constify the whole receive buffer
so we are sure it never gets manipulated when it's being parsed.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/requestqueue.c')
-rw-r--r-- | fs/dlm/requestqueue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dlm/requestqueue.c b/fs/dlm/requestqueue.c index 8be2893ad15b..892d6ca21e74 100644 --- a/fs/dlm/requestqueue.c +++ b/fs/dlm/requestqueue.c @@ -30,7 +30,8 @@ struct rq_entry { * lockspace is enabled on some while still suspended on others. */ -void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms) +void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, + const struct dlm_message *ms) { struct rq_entry *e; int length = le16_to_cpu(ms->m_header.h_length) - |