diff options
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 9a7527dc977e..c19419a38f62 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -365,8 +365,10 @@ static inline void cifsFileInfo_get(struct cifsFileInfo *cifs_file) | |||
365 | /* Release a reference on the file private data */ | 365 | /* Release a reference on the file private data */ |
366 | static inline void cifsFileInfo_put(struct cifsFileInfo *cifs_file) | 366 | static inline void cifsFileInfo_put(struct cifsFileInfo *cifs_file) |
367 | { | 367 | { |
368 | if (atomic_dec_and_test(&cifs_file->count)) | 368 | if (atomic_dec_and_test(&cifs_file->count)) { |
369 | iput(cifs_file->pInode); | ||
369 | kfree(cifs_file); | 370 | kfree(cifs_file); |
371 | } | ||
370 | } | 372 | } |
371 | 373 | ||
372 | /* | 374 | /* |