projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[IPV6]: Improve IPv6 tunnel error reporting
[powerpc.git]
/
net
/
sched
/
ematch.c
diff --git
a/net/sched/ematch.c
b/net/sched/ematch.c
index
0fd0768
..
8f8a16d
100644
(file)
--- a/
net/sched/ematch.c
+++ b/
net/sched/ematch.c
@@
-251,12
+251,11
@@
static int tcf_em_validate(struct tcf_proto *tp,
goto errout;
em->data = *(u32 *) data;
} else {
goto errout;
em->data = *(u32 *) data;
} else {
- void *v = km
alloc(
data_len, GFP_KERNEL);
+ void *v = km
emdup(data,
data_len, GFP_KERNEL);
if (v == NULL) {
err = -ENOBUFS;
goto errout;
}
if (v == NULL) {
err = -ENOBUFS;
goto errout;
}
- memcpy(v, data, data_len);
em->data = (unsigned long) v;
}
}
em->data = (unsigned long) v;
}
}