]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: constify get_normalized_path() properly
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Mar 2021 05:03:34 +0000 (01:03 -0400)
committerSteve French <stfrench@microsoft.com>
Tue, 13 Apr 2021 04:52:45 +0000 (23:52 -0500)
commit9477f9946a3ad563fa0217b9f24e0bd92eac9288
tree82df3c5dcab960ea4698c38f7b328c412c624fd3
parentb65ebf0a44f5c0184386d0a58a1b2b0e6b4850f2
cifs: constify get_normalized_path() properly

As it is, it takes const char * and, in some cases, stores it in
caller's variable that is plain char *.  Fortunately, none of the
callers actually proceeded to modify the string via now-non-const
alias, but that's trouble waiting to happen.

It's easy to do properly, anyway...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c