diff options
| author | Vito Caputo <[email protected]> | 2015-10-24 12:19:46 +0000 |
|---|---|---|
| committer | Miklos Szeredi <[email protected]> | 2015-11-10 16:08:42 +0000 |
| commit | e4ad29fa0d224d05e08b2858e65f112fd8edd4fe (patch) | |
| tree | f0c3477a1614df70e2b6f0a3bb26513c7c5f249d /net/unix/af_unix.c | |
| parent | ovl: allow zero size xattr (diff) | |
| download | kernel-e4ad29fa0d224d05e08b2858e65f112fd8edd4fe.tar.gz kernel-e4ad29fa0d224d05e08b2858e65f112fd8edd4fe.zip | |
ovl: use a minimal buffer in ovl_copy_xattr
Rather than always allocating the high-order XATTR_SIZE_MAX buffer
which is costly and prone to failure, only allocate what is needed and
realloc if necessary.
Fixes https://github.com/coreos/bugs/issues/489
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
