hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ID5HIM -------------------------------- L0 cache is not support by some platforms, work around it. Fixes: d60758b0ffcd ("net/oenetcls: introduce oenetcls for network optimization") Signed-off-by: Wang Liang <wangliang74@huawei.com> --- net/oenetcls/oenetcls_l0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/oenetcls/oenetcls_l0.c b/net/oenetcls/oenetcls_l0.c index b820a1cf96bd..2a12734e53b3 100644 --- a/net/oenetcls/oenetcls_l0.c +++ b/net/oenetcls/oenetcls_l0.c @@ -147,6 +147,9 @@ void init_oecls_l0_cache(void) int ret = 0; struct l0_vma_data *sbkpages; + /* L0 cache is not support by some platforms, work around this */ + return; + oecls_l0_cache = kzalloc(sizeof(*oecls_l0_cache), GFP_KERNEL); if (!oecls_l0_cache) { oecls_error("kzalloc oecls_l0_cache fail!\n"); -- 2.34.1