util: Move dereference after null check in util_resource_copy_region.
authorVinson Lee <vlee@freedesktop.org>
Sat, 4 Aug 2012 06:38:29 +0000 (23:38 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sun, 5 Aug 2012 04:41:27 +0000 (21:41 -0700)
commit3e7b3a04bf7667583dac18f1267d213aa7f33800
treeb4acd89fb6d8604ac1dc762c915d73ed301cca05
parenta5ca29100bd64f47e24ad1bd8ae04f0007021541
util: Move dereference after null check in util_resource_copy_region.

Fixes dereference before null check defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_surface.c