projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97a184f
)
Btrfs: Cocci spatch "memdup.spatch"
author
Thomas Meyer
<thomas@m3y3r.de>
Sat, 1 Jun 2013 09:37:50 +0000
(09:37 +0000)
committer
Josef Bacik
<jbacik@fusionio.com>
Fri, 14 Jun 2013 15:30:12 +0000
(11:30 -0400)
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/send.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index db381cf94943464e7970daf2901d74dc7e5896d0..d3f3b43cae0bdef23c889f6c5939c49aea13eda6 100644
(file)
--- a/
fs/btrfs/send.c
+++ b/
fs/btrfs/send.c
@@
-3422,10
+3422,9
@@
static int __find_xattr(int num, struct btrfs_key *di_key,
strncmp(name, ctx->name, name_len) == 0) {
ctx->found_idx = num;
ctx->found_data_len = data_len;
- ctx->found_data = km
alloc(
data_len, GFP_NOFS);
+ ctx->found_data = km
emdup(data,
data_len, GFP_NOFS);
if (!ctx->found_data)
return -ENOMEM;
- memcpy(ctx->found_data, data, data_len);
return 1;
}
return 0;