Use kzalloc rather than duplicating its implementation, which makes code simple and easy to understand. Signed-off-by: Haowen Bai <baihaowen@xxxxxxxxx> --- V1->V2: also remove the isglobal assigment above, so the whole else block could go away