[PATCH 5.10] malidp: Fix NULL vs IS_ERR() checking