]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Correct idr_alloc() minimum id
authorDmitry Osipenko <digetx@gmail.com>
Wed, 14 Jun 2017 23:18:25 +0000 (02:18 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Jun 2017 12:12:25 +0000 (14:12 +0200)
commitf0523f786f96489dbb4a4e45cdf5f828be8a531f
tree4dc6b2ff3516ed510f883dd12e422c63af192b45
parent7d47c0556120fa287b37d873927ab67e80a14fcc
drm/tegra: Correct idr_alloc() minimum id

The client ID 0 is reserved by the host1x/cdma to mark the timeout timer
work as already been scheduled and context ID is used as the clients one.
This fixes spurious CDMA timeouts.

Fixes: 66ed2d4e72eb ("drm/tegra: Don't leak kernel pointer to userspace")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/9c19a44219acd988e678cf9abe21363911184625.1497480754.git.digetx@gmail.com
drivers/gpu/drm/tegra/drm.c