diff options
author | Tejun Heo <tj@kernel.org> | 2013-10-02 01:42:03 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-06 04:27:40 +0400 |
commit | 91270162bf8a86bee756da7e931591d9953cb5a8 (patch) | |
tree | 086f17394395fdaadd0ddbc3761a3115c9c032c2 /include | |
parent | 13c589d5b0ac654d9da7e490a2dd548e6b86b4a5 (diff) | |
download | linux-91270162bf8a86bee756da7e931591d9953cb5a8.tar.xz |
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 'include')
0 files changed, 0 insertions, 0 deletions