Changeset 133ff9d in mainline


Ignore:
Timestamp:
2018-01-29T00:59:05Z (6 years ago)
Author:
Aearsis <Hlavaty.Ondrej@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b8ab299
Parents:
03cfe2ec
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-29 00:55:32)
git-committer:
Aearsis <Hlavaty.Ondrej@…> (2018-01-29 00:59:05)
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

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