radeonsi: fix error paths of si_texture_transfer_map
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 16 Jan 2018 13:38:00 +0000 (14:38 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 20 Apr 2018 07:21:33 +0000 (09:21 +0200)
commite788b987d866c12af25cee641209a3a5b2d2c107
tree286a1af9c81c8f1e06d61fbe969c4d4d68f0a3c3
parent68ee1d57962c81172841459f5eaeefbe5506425e
radeonsi: fix error paths of si_texture_transfer_map

trans is zero-initialized, but trans->resource is setup immediately so
needs to be dereferenced.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_texture.c