]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Odd PTR_ERR usage
authorThomas Meyer <thomas@m3y3r.de>
Mon, 16 Sep 2013 21:19:54 +0000 (23:19 +0200)
committerRob Clark <robdclark@gmail.com>
Sat, 28 Sep 2013 12:53:26 +0000 (08:53 -0400)
commit19580d5e972a9b17f97b3762cdb3f4f46a20937a
tree7903f17c51bee18040afd3a382683c7325a4f2f0
parent07221bc47111150f92753517b0f528d75db21716
drm/msm: Odd PTR_ERR usage

The variable priv->kms is not initialized yet.

Found by "scripts/coccinelle/tests/odd_ptr_err.cocci".
PTR_ERR should access the value just tested by IS_ERR.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
drivers/gpu/drm/msm/msm_drv.c