Re: [PATCH] drm/msm: Set drvdata to NULL when msm_drm_init() fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

On Thu, 25 Mar 2021 14:28:22 -0700 you wrote:
> We should set the platform device's driver data to NULL here so that
> code doesn't assume the struct drm_device pointer is valid when it could
> have been destroyed. The lifetime of this pointer is managed by a kref
> but when msm_drm_init() fails we call drm_dev_put() on the pointer which
> will free the pointer's memory. This driver uses the component model, so
> there's sort of two "probes" in this file, one for the platform device
> i.e. msm_pdev_probe() and one for the component i.e. msm_drm_bind(). The
> msm_drm_bind() code is using the platform device's driver data to store
> struct drm_device so the two functions are intertwined.
> 
> [...]

Here is the summary with links:
  - drm/msm: Set drvdata to NULL when msm_drm_init() fails
    https://git.kernel.org/qcom/c/5620b135aea4

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux