https://github.com/torvalds/linux
Revision 8f5f6178f366bdb93d6af6f2bdca8ebca1ad9fe9 authored by Gerhard Heift on 30 January 2014, 15:23:59 UTC, committed by Chris Mason on 13 June 2014, 01:21:39 UTC
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 <Gerhard@Heift.Name>
Signed-off-by: Chris Mason <clm@fb.com>
Acked-by: David Sterba <dsterba@suse.cz>
1 parent 1254444
History
Tip revision: 8f5f6178f366bdb93d6af6f2bdca8ebca1ad9fe9 authored by Gerhard Heift on 30 January 2014, 15:23:59 UTC
btrfs: tree_search, copy_to_sk: return EOVERFLOW for too small buffer
Tip revision: 8f5f617
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.6 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 272.1 KB
Makefile -rw-r--r-- 50.5 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top