summaryrefslogtreecommitdiffstats
path: root/net/caif/cfrfml.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-10-01 23:42:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-06 02:27:40 +0200
commit91270162bf8a86bee756da7e931591d9953cb5a8 (patch)
tree086f17394395fdaadd0ddbc3761a3115c9c032c2 /net/caif/cfrfml.c
parentsysfs: use seq_file when reading regular files (diff)
downloadlinux-91270162bf8a86bee756da7e931591d9953cb5a8.tar.xz
linux-91270162bf8a86bee756da7e931591d9953cb5a8.zip
sysfs: skip bin_buffer->buffer while reading
After b31ca3f5dfc ("sysfs: fix deadlock"), bin read() first writes data to bb->buffer and bounces it to a transient kernel buffer which is then copied out to userland. The double bouncing doesn't add anything. Let's just use the transient buffer directly. While at it, rename @temp to @buf for clarity. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/caif/cfrfml.c')
0 files changed, 0 insertions, 0 deletions