[PATCH] [bugfix] Inconsistent kernel checking