1. 12 Jul, 2016 6 commits
  2. 09 Jul, 2016 1 commit
  3. 08 Jul, 2016 1 commit
  4. 07 Jul, 2016 3 commits
  5. 30 Jun, 2016 8 commits
  6. 27 Jun, 2016 19 commits
  7. 25 Jun, 2016 2 commits
    • Jarkko Sakkinen's avatar
      tpm_crb: fix address space of the return pointer in crb_map_res() · f786b752
      Jarkko Sakkinen authored
      When running make C=2 M=drivers/char/tpm/
      
        CHECK   drivers/char/tpm//tpm_crb.c
      drivers/char/tpm//tpm_crb.c:248:31: warning: incorrect type in return expression (different address spaces)
      drivers/char/tpm//tpm_crb.c:248:31:    expected void [noderef] <asn:2>*
      drivers/char/tpm//tpm_crb.c:248:31:    got void *
      
      CC: stable@vger.kernel.org
      Fixes: 1bd047be ("tpm_crb: Use devm_ioremap_resource")
      Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
      Tested-by: default avatarStefan Berger <stefanb@linux.vnet.ibm.com>
      f786b752
    • Jarkko Sakkinen's avatar
      tpm_vtpm_proxy: fix address space of a user pointer in vtpmx_fops_ioctl() · 9da7e787
      Jarkko Sakkinen authored
      When running make C=2 M=drivers/char/tpm/
      
        CC [M]  drivers/char/tpm//tpm_crb.o
        CHECK   drivers/char/tpm//tpm_vtpm_proxy.c
      drivers/char/tpm//tpm_vtpm_proxy.c:552:32: warning: incorrect type in assignment (different address spaces)
      drivers/char/tpm//tpm_vtpm_proxy.c:552:32:    expected struct vtpm_proxy_new_dev *vtpm_new_dev_p
      drivers/char/tpm//tpm_vtpm_proxy.c:552:32:    got void [noderef] <asn:1>*argp
      drivers/char/tpm//tpm_vtpm_proxy.c:553:51: warning: incorrect type in argument 2 (different address spaces)
      drivers/char/tpm//tpm_vtpm_proxy.c:553:51:    expected void const [noderef] <asn:1>*from
      drivers/char/tpm//tpm_vtpm_proxy.c:553:51:    got struct vtpm_proxy_new_dev *vtpm_new_dev_p
      drivers/char/tpm//tpm_vtpm_proxy.c:559:34: warning: incorrect type in argument 1 (different address spaces)
      drivers/char/tpm//tpm_vtpm_proxy.c:559:34:    expected void [noderef] <asn:1>*to
      drivers/char/tpm//tpm_vtpm_proxy.c:559:34:    got struct vtpm_proxy_new_dev *vtpm_new_dev_p
      
      The __user annotation was missing from the corresponding variable.
      
      Fixes: 794c38e01358 ("tpm: Proxy driver for supporting multiple emulated TPMs")
      Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
      Tested-by: default avatarStefan Berger <stefanb@linux.vnet.ibm.com>
      9da7e787