mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
200b070042
commit
ddf08f4b90
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ int exofs_make_empty(struct inode *inode, struct inode *parent)
|
||||||
de->inode_no = cpu_to_le64(parent->i_ino);
|
de->inode_no = cpu_to_le64(parent->i_ino);
|
||||||
memcpy(de->name, PARENT_DIR, sizeof(PARENT_DIR));
|
memcpy(de->name, PARENT_DIR, sizeof(PARENT_DIR));
|
||||||
exofs_set_de_type(de, inode);
|
exofs_set_de_type(de, inode);
|
||||||
kunmap_atomic(page, KM_USER0);
|
kunmap_atomic(kaddr, KM_USER0);
|
||||||
err = exofs_commit_chunk(page, 0, chunk_size);
|
err = exofs_commit_chunk(page, 0, chunk_size);
|
||||||
fail:
|
fail:
|
||||||
page_cache_release(page);
|
page_cache_release(page);
|
||||||
|
|
Loading…
Reference in a new issue