Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 203b80c in mainline


Ignore:
Timestamp:
2018-01-29T00:55:34Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial
Children:
702729e
Parents:
4c3fef4
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-29 00:55:32)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-29 00:55:34)
Message:

libdrv: fix leaking ddf_dev_t reference

Even though the permanent reference held by the device being added is
dropped correctly, the temporary reference added by remove/gone is not.
That caused leaking devices and parent sessions along with them (which
is the way we discovered it).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    r4c3fef4 r203b80c  
    199199                dev_del_ref(dev);
    200200       
     201        dev_del_ref(dev);
    201202        async_answer_0(iid, (sysarg_t) rc);
    202203}
     
    227228                dev_del_ref(dev);
    228229       
     230        dev_del_ref(dev);
    229231        async_answer_0(iid, (sysarg_t) rc);
    230232}
Note: See TracChangeset for help on using the changeset viewer.