mirror of https://github.com/dynup/kpatch
Merge pull request #502 from libin2015/master
kpatch-build: fix shadow_get function
This commit is contained in:
commit
403490fff5
|
@ -158,6 +158,9 @@ void *kpatch_shadow_get(void *obj, char *var)
|
||||||
(unsigned long)obj) {
|
(unsigned long)obj) {
|
||||||
if (shadow->obj == obj && !strcmp(shadow_var(shadow), var)) {
|
if (shadow->obj == obj && !strcmp(shadow_var(shadow), var)) {
|
||||||
rcu_read_unlock();
|
rcu_read_unlock();
|
||||||
|
if (shadow_is_inplace(shadow))
|
||||||
|
return &(shadow->data);
|
||||||
|
|
||||||
return shadow->data;
|
return shadow->data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue