libgenlock: Remove the call to GENLOCK_IOC_RELEASE.

The GENLOCK_IOC_RELEASE ioctl is now deprecated. This was done because to
avoid race conditions where the handle was released before another client
tried to unlock it.

(cherry picked from commit d1514357422ce130d3e2776f984294a9efeea83e)

Change-Id: Iaf433a79dd0dad992cbf67180765718beec4eb1c
CRs-fixed: 333141
This commit is contained in:
Naomi Luis 2012-01-26 12:42:01 -08:00 committed by Andrew Sutherland
parent 115d446fcb
commit 2f579e15da

View File

@ -186,12 +186,6 @@ genlock_status_t genlock_release_lock(native_handle_t *buffer_handle)
return GENLOCK_FAILURE;
}
if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_RELEASE, NULL)) {
LOGE("%s: GENLOCK_IOC_RELEASE failed (err=%s)", __FUNCTION__,
strerror(errno));
ret = GENLOCK_FAILURE;
}
// Close the fd and reset the parameters.
close_genlock_fd_and_handle(hnd->genlockPrivFd, hnd->genlockHandle);
}