Skip to content

Commit

Permalink
libgenlock: Remove the call to GENLOCK_IOC_RELEASE.
Browse files Browse the repository at this point in the history
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 d151435)

Change-Id: Iaf433a79dd0dad992cbf67180765718beec4eb1c
CRs-fixed: 333141
  • Loading branch information
Naomi Luis authored and rmcc committed Mar 14, 2012
1 parent 452622b commit e73c94b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libgenlock/genlock.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit e73c94b

Please sign in to comment.