• Peter Huewe's avatar
    tpm/tpm_ppi: Do not compare strcmp(a,b) == -1 · 747d35bd
    Peter Huewe authored
    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: default avatarPeter Huewe <peterhuewe@gmx.de>
    747d35bd
tpm_ppi.c 13.3 KB