Commit d6c561ce authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] cifs: kunmap_atomic() takes a kernel address

kunmap_atomic() takes a kernel-virtual address, not a pageframe address.

(Very common problem.  We really should make the atomic kmap functions
type-safe).
parent 4e742d9c
......@@ -925,7 +925,7 @@ static void cifs_copy_cache_pages(struct address_space *mapping,
__pagevec_lru_add(plru_pvec);
flush_dcache_page(page);
SetPageUptodate(page);
kunmap_atomic(page,KM_USER0);
kunmap_atomic(target,KM_USER0);
unlock_page(page);
page_cache_release(page);
data += PAGE_CACHE_SIZE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment