From: Peter Huewe Date: Wed, 30 Oct 2013 19:46:55 +0000 (+0100) Subject: tpm/tpm_ppi: Do not compare strcmp(a,b) == -1 X-Git-Tag: v3.14-rc1~147^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=747d35bd9bb4ae6bd74b19baa5bbe32f3e0cee11;p=pandora-kernel.git tpm/tpm_ppi: Do not compare strcmp(a,b) == -1 Depending on the implementation strcmp might return the difference between two strings not only -1,0,1 consequently if (strcmp (a,b) == -1) might lead to taking the wrong branch -> compare with < 0 instead, which in any case is more canonical. Cc: stable@vger.kernel.org Signed-off-by: Peter Huewe --- Reading git-diff-tree failed