Commit ddf08f4b90a413892bbb9bb2e8a57aed991cd47d

Authored by Dan Carpenter
Committed by Boaz Harrosh
1 parent 200b070042

exofs: confusion between kmap() and kmap_atomic() api

For kmap_atomic() we call kunmap_atomic() on the returned pointer.
That's different from kmap() and kunmap() and so it's easy to get them
backwards.

Cc: Stable <stable@kernel.org>
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -608,7 +608,7 @@
608 608 de->inode_no = cpu_to_le64(parent->i_ino);
609 609 memcpy(de->name, PARENT_DIR, sizeof(PARENT_DIR));
610 610 exofs_set_de_type(de, inode);
611   - kunmap_atomic(page, KM_USER0);
  611 + kunmap_atomic(kaddr, KM_USER0);
612 612 err = exofs_commit_chunk(page, 0, chunk_size);
613 613 fail:
614 614 page_cache_release(page);