drm/i915: fix possible NULL dereference of dev_priv
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Mon, 12 Nov 2012 12:20:19 +0000 (14:20 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Nov 2012 10:43:51 +0000 (11:43 +0100)
commit4f1ba0f83a6d4abd055cf75af43954b38df8dcaf
treede6614f3f538e62d231205a440fcbf666aba2e5d
parentfc37381cc8ae2c24b8ece33659e69a0605ca074c
drm/i915: fix possible NULL dereference of dev_priv

Dereference dev_priv only after we know it is valid.
Found with smatch.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c