]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/9p/cache.c
Merge tag 'arcpgu-updates-2019.07.18' of github.com:abrodkin/linux into drm-next
[linux.git] / fs / 9p / cache.c
index 995e332eee5c01921da5426bfbb43fa72a328a28..eb2151fb60494c9330b29dcd136a577f9fdf2286 100644 (file)
@@ -51,6 +51,8 @@ void v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses)
        if (!v9ses->cachetag) {
                if (v9fs_random_cachetag(v9ses) < 0) {
                        v9ses->fscache = NULL;
+                       kfree(v9ses->cachetag);
+                       v9ses->cachetag = NULL;
                        return;
                }
        }