Explorar o código

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 %!s(int64=15) %!d(string=hai) anos
pai
achega
03cd373981
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);