From deb85ad87d29ee1c2b518552b209647cedc0ca74 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Wed, 8 Feb 2017 13:11:26 -0800 Subject: [PATCH] ANDROID: goldfish_sync: Fix sync_file_obj is NULL but dereferenced problem Change-Id: I22c1e8c96a62ceaf3b0088b0b81dced6889334ab Signed-off-by: Dmitry Shmidt --- drivers/staging/goldfish/goldfish_sync_timeline.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/goldfish/goldfish_sync_timeline.c b/drivers/staging/goldfish/goldfish_sync_timeline.c index aeccec1c51b1..0dac94f5accd 100644 --- a/drivers/staging/goldfish/goldfish_sync_timeline.c +++ b/drivers/staging/goldfish/goldfish_sync_timeline.c @@ -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); -- 2.20.1