diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-12 16:11:49 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-07-13 15:58:02 -0400 |
commit | b9c744c19c441f306239ac3e60a2a95b40d698f8 (patch) | |
tree | 5ab3312dcbe23146d748739d39738efaf97fc439 /fs/nfs | |
parent | 0becc1181cdba562730be4d4b8a5fcb4368ef527 (diff) | |
download | op-kernel-dev-b9c744c19c441f306239ac3e60a2a95b40d698f8.zip op-kernel-dev-b9c744c19c441f306239ac3e60a2a95b40d698f8.tar.gz |
sunrpc: mark all struct svc_procinfo instances as const
struct svc_procinfo contains function pointers, and marking it as
constant avoids it being able to be used as an attach vector for
code injections.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/callback_xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index ecd46b8..ae249f2 100644 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c @@ -995,7 +995,7 @@ static struct callback_op callback_ops[] = { /* * Define NFS4 callback procedures */ -static struct svc_procedure nfs4_callback_procedures1[] = { +static const struct svc_procedure nfs4_callback_procedures1[] = { [CB_NULL] = { .pc_func = nfs4_callback_null, .pc_decode = nfs4_decode_void, |