ANDROID: goldfish_sync: Fix sync_file_obj is NULL but dereferenced problem
authorDmitry Shmidt <dimitrysh@google.com>
Wed, 8 Feb 2017 21:11:26 +0000 (13:11 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
Change-Id: I22c1e8c96a62ceaf3b0088b0b81dced6889334ab
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/staging/goldfish/goldfish_sync_timeline.c

index aeccec1c51b113f2df0f6a7cd0dec739dd68773d..0dac94f5accd66da9be98fd9e6f80c1f23ef511c 100644 (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);