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:
3974884
)
drm/i915: fix error path in intel_setup_gmbus()
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Tue, 9 Feb 2016 20:11:13 +0000
(21:11 +0100)
committer
Jani Nikula
<jani.nikula@intel.com>
Wed, 10 Feb 2016 16:11:34 +0000
(18:11 +0200)
This fails to undo the setup for pin==0; moreover, something
interesting happens if the setup failed already at pin==0.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Fixes:
f899fc64cda8
("drm/i915: use GMBUS to manage i2c links")
Cc: stable@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/1455048677-19882-3-git-send-email-linux@rasmusvillemoes.dk
(cherry picked from commit
2417c8c03f508841b85bf61acc91836b7b0e2560
)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_i2c.c
b/drivers/gpu/drm/i915/intel_i2c.c
index
25254b5
..
deb8282
100644
(file)
--- a/
drivers/gpu/drm/i915/intel_i2c.c
+++ b/
drivers/gpu/drm/i915/intel_i2c.c
@@
-683,7
+683,7
@@
int intel_setup_gmbus(struct drm_device *dev)
return 0;
err:
- while (
--pin
) {
+ while (
pin--
) {
if (!intel_gmbus_is_valid_pin(dev_priv, pin))
continue;