Changeset f6ce093 in mainline for uspace/srv/devman/fun.c


Ignore:
Timestamp:
2018-11-25T17:40:59Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Parents:
5aa06ad
Message:

Fix devman device reference counting

After commit 498ced1, create_dev_node() returns a dev pointer with an
implicit reference. Adding an extra reference for creation thus adds a
reference that will never be dropped and the device object will be
leaked.

This commit removes the extra reference.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/fun.c

    r5aa06ad rf6ce093  
    317317
    318318                insert_dev_node(&device_tree, dev, fun);
    319                 dev_add_ref(dev);
    320319        }
    321320
Note: See TracChangeset for help on using the changeset viewer.