Merge pull request #502 from libin2015/master

kpatch-build: fix shadow_get function
This commit is contained in:
Seth Jennings 2015-10-12 16:48:35 -05:00
commit 403490fff5
1 changed files with 3 additions and 0 deletions

View File

@ -158,6 +158,9 @@ void *kpatch_shadow_get(void *obj, char *var)
(unsigned long)obj) {
if (shadow->obj == obj && !strcmp(shadow_var(shadow), var)) {
rcu_read_unlock();
if (shadow_is_inplace(shadow))
return &(shadow->data);
return shadow->data;
}
}