* The usual cleanup behind mmu_man ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35999 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1749,9 +1749,9 @@ tty_ioctl(tty_cookie* cookie, uint32 op, void* buffer, size_t length)
|
|||||||
ReaderLocker readLocker(cookie);
|
ReaderLocker readLocker(cookie);
|
||||||
|
|
||||||
status_t status = readLocker.AcquireReader(0, 1);
|
status_t status = readLocker.AcquireReader(0, 1);
|
||||||
if (status >= B_OK)
|
if (status == B_OK)
|
||||||
toRead = readLocker.AvailableBytes();
|
toRead = readLocker.AvailableBytes();
|
||||||
else if(status != B_WOULD_BLOCK)
|
else if (status != B_WOULD_BLOCK)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
if (user_memcpy(buffer, &toRead, sizeof(int)) != B_OK)
|
if (user_memcpy(buffer, &toRead, sizeof(int)) != B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user