• Peter Huewe's avatar
    tpm/tpm_ppi: Check return value of acpi_get_name · 238b1eaa
    Peter Huewe authored
    
    
    If
     status = acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer);
    fails for whatever reason and does not return AE_OK
     if (strstr(buffer.pointer, context) != NULL) {
    does dereference a null pointer.
    
    -> Check the return value and return the status to the caller
    
    Found by coverity
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
    238b1eaa
tpm_ppi.c 13.3 KB