aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2016-02-02 02:28:05 +0000
committerAl Viro <[email protected]>2016-02-20 05:15:51 +0000
commit0bacbe528e26422e424d110ebda4ec68ea0fd5eb (patch)
tree2781e7f0e0448d30efd5e50fd7ea4a3c6d4f19dc /net/switchdev/switchdev.c
parentxattr handlers: plug a lock leak in simple_xattr_list (diff)
downloadkernel-0bacbe528e26422e424d110ebda4ec68ea0fd5eb.tar.gz
kernel-0bacbe528e26422e424d110ebda4ec68ea0fd5eb.zip
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: Insu Yun <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions