gpu: anx7808: fix a missing check in anx78xx_poweron
Subsystems (3)
PATCH v2 1/1 gpu: anx7808: fix a missing check in anx78xx_poweron
Both anx78xx_set_bits() and anx78xx_clear_bits() in the poweron process may fail. The fix inserts checks for their return values.
Signed-off-by Kangjie Lu <[email protected]>
--- drivers/gpu/drm/bridge/analogix-anx78xx.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/analogix-anx78xx.c +1 -0
@@ -646,6 +646,7 @@ static void anx78xx_poweron(struct anx78xx *anx78xx) err);return ; } + err =anx78xx_clear_bits (anx78xx->map[I2C_IDX_TX_P2 ],SP_POWERDOWN_CTRL_REG ,SP_REGISTER_PD |SP_TOTAL_PD );
Signature · 1 line
2.17.2 (Apple Git-113)
Please ignore this email. I've sent another one.
Quoted 25 lines · Kangjie Lu
Both
anx78xx_set_bits()andanx78xx_clear_bits()in the poweron process may fail. The fix inserts checks for their return values.Signed-off-by Kangjie Lu <[email protected]>--- drivers/gpu/drm/bridge/analogix-anx78xx.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/bridge/analogix-anx78xx.c +1
-1@@ -646,6 +646,7 @@ static void anx78xx_poweron(struct anx78xx *anx78xx) err);return ; } + err =anx78xx_clear_bits (anx78xx->map[I2C_IDX_TX_P2 ],SP_POWERDOWN_CTRL_REG ,SP_REGISTER_PD |SP_TOTAL_PD ); --2.17.2 (Apple Git-113)
Signature · 5 lines
Kangjie Lu Assistant Professor Department of Computer Science and Engineering University of Minnesota Personal homepage <https://www-users.cs.umn.edu/~kjlu>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel