drm/radeon: only increment sync_seq when a fence is really emitted
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 12 Dec 2015 16:42:25 +0000 (11:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Dec 2015 22:29:49 +0000 (17:29 -0500)
commitb24c683af14bdc52b81899937ef2e52c15fe4768
tree8d186b4673434ea1ecc682b0abe630a8ae4baa1e
parent5fc45397d52eb8fbfba7e0ebf805ad01daa76836
drm/radeon: only increment sync_seq when a fence is really emitted

In the rare situation where the kmalloc fails we're probably screwed anyway,
but let's try to be more robust about it.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Nicolai Hähnle <Nicolai.Haehnle@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_fence.c