The film's homophobia and xenophobia have been discussed many times.
But it should be noted the film added these elements. The book's author talks about having homosexual relationships in prison--the film makes him reject any homosexual activity. The film eliminates the books positive depictions of Turkish men, making them all villains.
The author, Billy Hayes, continues to be critical of the film for these changes.