projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e681f
)
drm/nouveau: Check backlight IDs are >= 0, not > 0
author
Lyude Paul
<
[email protected]
>
Thu, 6 Sep 2018 21:43:21 +0000
(17:43 -0400)
committer
Ben Skeggs
<
[email protected]
>
Wed, 10 Oct 2018 23:54:09 +0000
(09:54 +1000)
Remember, ida IDs start at 0, not 1!
Signed-off-by: Lyude Paul <
[email protected]
>
Reviewed-by: Karol Herbst <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Ben Skeggs <
[email protected]
>
drivers/gpu/drm/nouveau/nouveau_backlight.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_backlight.c
b/drivers/gpu/drm/nouveau/nouveau_backlight.c
index 408b955e5c39a6b41043c18fb37ae8dc9de42c04..6dd72bc32897a6099557ad4a6bf683f1c03d9868 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_backlight.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_backlight.c
@@
-116,7
+116,7
@@
nv40_backlight_init(struct drm_connector *connector)
&nv40_bl_ops, &props);
if (IS_ERR(bd)) {
- if (bl_connector.id > 0)
+ if (bl_connector.id >
=
0)
ida_simple_remove(&bl_ida, bl_connector.id);
return PTR_ERR(bd);
}
@@
-249,7
+249,7
@@
nv50_backlight_init(struct drm_connector *connector)
nv_encoder, ops, &props);
if (IS_ERR(bd)) {
- if (bl_connector.id > 0)
+ if (bl_connector.id >
=
0)
ida_simple_remove(&bl_ida, bl_connector.id);
return PTR_ERR(bd);
}