From 71d714ccbf03948d67ab6cebad49703160e5895e Mon Sep 17 00:00:00 2001 From: James Dong Date: Wed, 9 Jun 2010 15:57:48 -0700 Subject: Remove the lock/unlock workaround from CameraService bug - 2677772 Change-Id: I7c996daad8b3bfc89e9fa2d655dc18c9a5c68f2f --- camera/libcameraservice/CameraService.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'camera/libcameraservice') diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp index 4f684b7..690169a 100644 --- a/camera/libcameraservice/CameraService.cpp +++ b/camera/libcameraservice/CameraService.cpp @@ -371,10 +371,7 @@ CameraService::Client::~Client() { status_t CameraService::Client::checkPid() const { int callingPid = getCallingPid(); if (callingPid == mClientPid) return NO_ERROR; - if (callingPid == getpid()) { - LOGW("FIXME: use camera from mediaserver without permission."); - return NO_ERROR; - } + LOGW("attempt to use a locked camera from a different process" " (old pid %d, new pid %d)", mClientPid, callingPid); return EBUSY; -- cgit v1.1