diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-12 16:36:49 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-05-15 18:42:20 +0300 |
commit | 499b4988109e91b76f231fb1b4f1e53ec3260686 (patch) | |
tree | cb00c04bb34f8e82ef15bdd4d843c33a7833c80e /net/sunrpc/stats.c | |
parent | f700c72dd2f1f886f56788436b540aab95903c3f (diff) | |
download | linux-499b4988109e91b76f231fb1b4f1e53ec3260686.tar.xz |
sunrpc: mark all struct rpc_procinfo instances as const
struct rpc_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>
Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/stats.c')
-rw-r--r-- | net/sunrpc/stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c index 91c84d18bf9a..8b6c35ae1d57 100644 --- a/net/sunrpc/stats.c +++ b/net/sunrpc/stats.c @@ -191,7 +191,7 @@ void rpc_count_iostats(const struct rpc_task *task, struct rpc_iostats *stats) EXPORT_SYMBOL_GPL(rpc_count_iostats); static void _print_name(struct seq_file *seq, unsigned int op, - struct rpc_procinfo *procs) + const struct rpc_procinfo *procs) { if (procs[op].p_name) seq_printf(seq, "\t%12s: ", procs[op].p_name); |