undefined4 proc_init_formqos(void)
{
void *__s;
int iVar1;
__s = (void *)kmem_cache_alloc(0x1d3e4,0xd0) //possible issue identified - semgrep
if (__s != (void *)0x0) {
memset(__s,0,0x11c) //possible issue identified - semgrep
*(undefined4 *)((int)__s + 0x114) = 0x1e;
*(undefined4 *)((int)__s + 0x110) = 0;
alphaformqos = __s;
iVar1 = create_proc_entry("fastnat/formqossupport",0,0);
*(int *)((int)__s + 0x118) = iVar1;
if (iVar1 != 0) {
*(void **)(iVar1 + 0x3c) = __s;
*(code **)(*(int *)((int)__s + 0x118) + 0x40) = proc_read_formqos;
*(code **)(*(int *)((int)__s + 0x118) + 0x44) = proc_write_formqos;
return 0;
}
}
return 0xfffffff4;
}