Skip to content
Commit 9581a4ae authored by Jeff Layton's avatar Jeff Layton Committed by Trond Myklebust
Browse files

nfs: pass string length to pr_notice message about readdir loops



There is no guarantee that the strings in the nfs_cache_array will be
NULL-terminated. In the event that we end up hitting a readdir loop, we
need to ensure that we pass the warning message the length of the
string.

Reported-by: default avatarLachlan McIlroy <lmcilroy@redhat.com>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent e911b815
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment