Skip to content
Commit 0bacbe52 authored by Al Viro's avatar Al Viro Committed by Al Viro
Browse files

affs_do_readpage_ofs(): just use kmap_atomic() around memcpy()



It forgets kunmap() on a failure exit, but there's really no point keeping
the page kmapped at all - after all, what we are doing is a bunch of memcpy()
into the parts of page, so kmap_atomic()/kunmap_atomic() just around those
memcpy() is enough.

Spotted-by: default avatarInsu Yun <wuninsu@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0e9a7da5
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