[PATCH 5.17 004/298] lkdtm/bugs: Check for the NULL pointer after calling kmalloc