1. 05 2月, 2013 1 次提交
  2. 12 9月, 2012 1 次提交
  3. 23 8月, 2012 2 次提交
    • J
      tpm: Do not dereference NULL pointer if acpi_os_map_memory() fails. · f334ac8d
      Jesper Juhl 提交于
      In drivers/char/tpm/tpm_acpi.c::read_log() we call
      acpi_os_map_memory(). That call may fail for a number of reasons
      (invalid address, out of memory etc). If the call fails it returns
      NULL and we just pass that to memcpy() unconditionally, which will go
      bad when it tries to dereference the pointer.
      
      Unfortunately we just get NULL back, so we can't really tell the user
      exactely what went wrong, but we can at least avoid crashing and
      return an error (-EIO seemed more generic and more suitable here than
      -ENOMEM or something else, so I picked that).
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Signed-off-by: NKent Yoder <key@linux.vnet.ibm.com>
      f334ac8d
    • K
      tpm: modularize event log collection · e5dcd87f
      Kent Yoder 提交于
      Break ACPI-specific pieces of the event log handling into their own file
      and create tpm_eventlog.[ch] to store common event log handling code.
      This will be required to integrate future event log sources on platforms
      without ACPI tables.
      Signed-off-by: NKent Yoder <key@linux.vnet.ibm.com>
      e5dcd87f