Changeset 698ce34c in mainline


Ignore:
Timestamp:
2020-05-05T15:59:13Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
622e7c9
Parents:
b42fa76
Message:

Async_hangup being called with async exchanges should be assertion failure

If this happens, there is a race between async_hangup() (which frees
the session) and using the session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async/client.c

    rb42fa76 r698ce34c  
    10691069
    10701070        fibril_mutex_lock(&async_sess_mutex);
    1071 
    1072         if (sess->exchanges > 0) {
    1073                 fibril_mutex_unlock(&async_sess_mutex);
    1074                 return EBUSY;
    1075         }
     1071        assert(sess->exchanges == 0);
    10761072
    10771073        errno_t rc = async_hangup_internal(sess->phone);
Note: See TracChangeset for help on using the changeset viewer.