diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-01-20 14:35:31 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-01-20 14:35:31 -0300 |
commit | cd07e536b0201fceffd90a701bfb1e1fc07fcd34 (patch) | |
tree | 4777d4b2f749b279fc07bd41f11b88c9e4578afe /fs/cifs/dfs_cache.c | |
parent | 47fddcb479e73c341fb414e40a89572dacadd360 (diff) | |
parent | 45dfb8a5659ad286c28fa59008271dbc4e5e3f2d (diff) | |
download | linux-cd07e536b0201fceffd90a701bfb1e1fc07fcd34.tar.bz2 |
Merge remote-tracking branch 'torvalds/master' into perf/core
To pick up fixes.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'fs/cifs/dfs_cache.c')
-rw-r--r-- | fs/cifs/dfs_cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c index 6ad6ba5f6ebe..0fdb0de7ff86 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@ -1260,7 +1260,8 @@ void dfs_cache_del_vol(const char *fullpath) vi = find_vol(fullpath); spin_unlock(&vol_list_lock); - kref_put(&vi->refcnt, vol_release); + if (!IS_ERR(vi)) + kref_put(&vi->refcnt, vol_release); } /** |