projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1066a89
)
drm/tegra: Correct idr_alloc() minimum id
author
Dmitry Osipenko
<digetx@gmail.com>
Wed, 14 Jun 2017 23:18:25 +0000
(
02:18
+0300)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 15 Jun 2017 12:12:25 +0000
(14:12 +0200)
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:
bdd2f9cd10eb
("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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/drm.c
b/drivers/gpu/drm/tegra/drm.c
index
fefa715
..
81f86a6
100644
(file)
--- a/
drivers/gpu/drm/tegra/drm.c
+++ b/
drivers/gpu/drm/tegra/drm.c
@@
-539,7
+539,7
@@
static int tegra_client_open(struct tegra_drm_file *fpriv,
if (err < 0)
return err;
- err = idr_alloc(&fpriv->contexts, context,
0
, 0, GFP_KERNEL);
+ err = idr_alloc(&fpriv->contexts, context,
1
, 0, GFP_KERNEL);
if (err < 0) {
client->ops->close_channel(context);
return err;