]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: anx7625: check the return on anx7625_aux_trans
authorTom Rix <trix@redhat.com>
Thu, 3 Mar 2022 20:19:43 +0000 (12:19 -0800)
committerRobert Foss <robert.foss@linaro.org>
Wed, 9 Mar 2022 13:45:58 +0000 (14:45 +0100)
commitea9c9fb98badc816525e8832e58a01ba3343b425
treea6f4004b6e9a1c6c56b19dfcd54b26c0913e1ab0
parent2dd53f4750d76787b19a566c563c8a1be5f78580
drm/bridge: anx7625: check the return on anx7625_aux_trans

Clang static analysis reports this issue
anx7625.c:876:13: warning: The left operand of '&' is
  a garbage value
  if (!(bcap & 0xOA01)) {
        ~~~~ ^

bcap is only set by a successful call to
anx7625_aux_trans().  So check.

Fixes: 3a431a948237 ("drm/bridge: anx7625: add HDCP support")
Signed-off-by: Tom Rix <trix@redhat.com>
Fixes: 42b934d7e1a4 ("drm/bridge: anx7625: Support reading edid through aux channel")
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220303201943.501746-1-trix@redhat.com
Reviewed-by: Robert Foss <robert.foss@linaro.org>
drivers/gpu/drm/bridge/analogix/anx7625.c