Fixup the kernel bug of critical resourses.

Signed-off-by: Shanjin Yang <sjyang@credosemi.com>