diff options
author | 2011-03-07 11:10:24 -0500 | |
---|---|---|
committer | 2011-03-07 11:10:24 -0500 | |
commit | 31339acd07b4ba687906702085127895a56eb920 (patch) | |
tree | c1f2d464acfc97e8c5faecf57e644578cccce94d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | Btrfs: fix regressions in copy_from_user handling (diff) | |
download | wireguard-linux-31339acd07b4ba687906702085127895a56eb920.tar.xz wireguard-linux-31339acd07b4ba687906702085127895a56eb920.zip |
Btrfs: deal with short returns from copy_from_user
When copy_from_user is only able to copy some of the bytes we requested,
we may end up creating a partially up to date page. To avoid garbage in
the page, we need to treat a partial copy as a zero length copy.
This makes the rest of the file_write code drop the page and
retry the whole copy instead of marking the partially up to
date page as dirty.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
cc: stable@kernel.org
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions