ANDROID: goldfish_sync: Fix sync_file_obj is NULL but dereferenced problem

Change-Id: I22c1e8c96a62ceaf3b0088b0b81dced6889334ab
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt
2017-02-08 13:11:26 -08:00
parent d37a658513
commit f2dd18a00f

View File

@@ -323,7 +323,6 @@ goldfish_sync_fence_create(struct goldfish_sync_timeline_obj *obj,
return fd;
err_cleanup_fd_pt:
fput(sync_file_obj->file);
put_unused_fd(fd);
err_cleanup_pt:
fence_put(&syncpt->base);