1. 06 5月, 2019 1 次提交
    • P
      mmc: core: fix possible use after free of host · 8e1943af
      Pan Bian 提交于
      In the function mmc_alloc_host, the function put_device is called to
      release allocated resources when mmc_gpio_alloc fails. Finally, the
      function pointed by host->class_dev.class->dev_release (i.e.,
      mmc_host_classdev_release) is used to release resources including the
      host structure. However, after put_device, host is used and released
      again. Resulting in a use-after-free bug.
      
      Fixes: 1ed21719 ("mmc: core: fix error path in mmc_host_alloc")
      Signed-off-by: NPan Bian <bianpan2016@163.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      8e1943af
  2. 29 4月, 2019 2 次提交
  3. 15 4月, 2019 37 次提交