From: Peter Huewe Date: Wed, 30 Oct 2013 00:40:28 +0000 (+0100) Subject: tpm/tpm_ppi: Check return value of acpi_get_name X-Git-Tag: v3.14-rc1~147^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=238b1eaa59e6a8e2993af0db9ec2255bfa53927b;p=pandora-kernel.git tpm/tpm_ppi: Check return value of acpi_get_name 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: Peter Huewe --- Reading git-diff-tree failed