commit | 91270162bf8a86bee756da7e931591d9953cb5a8 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Tue Oct 01 17:42:03 2013 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Oct 05 17:27:40 2013 -0700 |
tree | 086f17394395fdaadd0ddbc3761a3115c9c032c2 | |
parent | 13c589d5b0ac654d9da7e490a2dd548e6b86b4a5 [diff] |
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>