int * blacklist_init(int param_1)
{
int *piVar1;
int iVar2;
piVar1 = (int *)kmem_cache_alloc(0x1d324,0xd0) //possible issue identified - semgrep
if (piVar1 == (int *)0x0) {
if (qosdebug != 0) {
printk("init blacklistarray fail !!!\n");
}
}
else {
piVar1[1] = param_1;
*piVar1 = 0;
iVar2 = __kmalloc(param_1 * 0x14,0xd0) //possible issue identified - semgrep
*piVar1 = iVar2;
if (iVar2 == 0) {
kfree(piVar1);
piVar1 = (int *)0x0;
if (qosdebug != 0) {
printk("init blacklist fail !!!\n");
piVar1 = (int *)0x0;
}
}
else {
if (qosdebug != 0) {
printk("init blacklist success !!!\n");
}
memset((void *)*piVar1,0,param_1 * 0x14) //possible issue identified - semgrep
}
}
return piVar1;
}