On 09-02-16, 21:23, Rafael J. Wysocki wrote:
- count = dbs_data->usage_count--;
This appears to be planting a bug.
The way you wrote it the decrementation will take place after the assignment, so count will contain the old value.
Oh crap, what was I smoking :)