diff options
author | Gerhard Heift <[email protected]> | 2014-01-30 16:23:59 +0100 |
---|---|---|
committer | Chris Mason <[email protected]> | 2014-06-12 18:21:39 -0700 |
commit | 8f5f6178f366bdb93d6af6f2bdca8ebca1ad9fe9 (patch) | |
tree | a2e697a397615dad07bb8665f5d8ec86cd481062 /tools/perf/util/trace-event-scripting.c | |
parent | 12544442882e13aee98126928bb3a1a141484fe8 (diff) |
btrfs: tree_search, copy_to_sk: return EOVERFLOW for too small buffer
In copy_to_sk, if an item is too large for the given buffer, it now returns
-EOVERFLOW instead of copying a search_header with len = 0. For backward
compatibility for the first item it still copies such a header to the buffer,
but not any other following items, which could have fitted.
tree_search changes -EOVERFLOW back to 0 to behave similiar to the way it
behaved before this patch.
Signed-off-by: Gerhard Heift <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Acked-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions