diff options
author | Anastasia Lyupa <a.lyupa@samsung.com> | 2013-12-16 14:05:33 +0400 |
---|---|---|
committer | Anastasia Lyupa <a.lyupa@samsung.com> | 2013-12-16 17:10:10 +0400 |
commit | 7ddb6434a343f484e3e0b2f1b720e77753e32800 (patch) | |
tree | d24d9a6d81c8de4725077d6a600081eb1e2321e3 | |
parent | c45f7e630c9a1e38301dd17b100f21952727f134 (diff) | |
download | swap-modules-7ddb6434a343f484e3e0b2f1b720e77753e32800.tar.gz swap-modules-7ddb6434a343f484e3e0b2f1b720e77753e32800.tar.bz2 swap-modules-7ddb6434a343f484e3e0b2f1b720e77753e32800.zip |
[FIX] dbi_register_kprobe
don't return -EINVAL, when symbol_name and addr are set
at the same time, use symbol_name to update addr
Change-Id: I5129ceb6408e0be87e078e13b9593bb9895228ca
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
-rw-r--r-- | kprobe/dbi_kprobes.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kprobe/dbi_kprobes.c b/kprobe/dbi_kprobes.c index 0710e282..40ee61be 100644 --- a/kprobe/dbi_kprobes.c +++ b/kprobe/dbi_kprobes.c @@ -504,11 +504,8 @@ int dbi_register_kprobe(struct kprobe *p) * and add it to the address. That way the addr * field can either be global or relative to a symbol. */ - if (p->symbol_name) { - if (p->addr) - return -EINVAL; + if (p->symbol_name) p->addr = (kprobe_opcode_t *)swap_ksyms(p->symbol_name); - } if (!p->addr) return -EINVAL; |