ve0 doesn't exist when !CONFIG_VE.

https://virtuozzo.atlassian.net/browse/VSTOR-130116

Feature: !CONFIG_VE build
Signed-off-by: Vladimir Riabchun <[email protected]>
---
 include/linux/sysctl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 2fab3ecfaf88..633f219f5ab6 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -94,7 +94,8 @@ int sysctl ## _virtual(const struct ctl_table *table, int 
write,              \
                        void *buffer, size_t *lenp, loff_t *ppos)               
\
 {                                                                              
\
        struct ctl_table tmp = *table;                                          
\
-       if (virtual_ptr(&tmp.data, &ve0, sizeof(ve0), get_exec_env()))          
\
+       if (virtual_ptr(&tmp.data, get_ve0(), sizeof(struct ve_struct),         
\
+                       get_exec_env()))                                        
\
                return sysctl(&tmp, write, buffer, lenp, ppos);                 
\
        return -EINVAL;                                                         
\
 }
-- 
2.47.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to