浏览代码

Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
  cifs: fix page refcount leak
Linus Torvalds 15 年之前
父节点
当前提交
03cd373981
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/cifs/file.c

+ 1 - 0
fs/cifs/file.c

@@ -1952,6 +1952,7 @@ static void cifs_copy_cache_pages(struct address_space *mapping,
 			bytes_read -= PAGE_CACHE_SIZE;
 			continue;
 		}
+		page_cache_release(page);
 
 		target = kmap_atomic(page, KM_USER0);