diff options
author | Roman Kiryanov | 2018-09-14 19:51:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-09-25 20:25:42 +0200 |
commit | 48a2d422b508e707f477f9160c795f70c5c20026 (patch) | |
tree | b90cb12a5dd626e4ff1b33317ac6a3854fbfa2a7 /drivers/spmi | |
parent | platform: goldfish: pipe: Remove license boilerplate (diff) | |
download | kernel-qcow2-linux-48a2d422b508e707f477f9160c795f70c5c20026.tar.gz kernel-qcow2-linux-48a2d422b508e707f477f9160c795f70c5c20026.tar.xz kernel-qcow2-linux-48a2d422b508e707f477f9160c795f70c5c20026.zip |
platform: goldfish: pipe: Prevent memory corruption from several threads writing to the same variable
Move the "pages" buffer into "struct goldfish_pipe". Since we are
locking the mutex on the pipe in transfer_max_buffers, other threads
willnot be able to write into it, but other pipe instances could be
served because they have its own buffer.
Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/spmi')
0 files changed, 0 insertions, 0 deletions