Changeset fb4c877 in mainline for uspace/srv/devman/main.c


Ignore:
Timestamp:
2011-09-02T21:08:44Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b68e0c
Parents:
224c0e7
Message:

Do not trust driver to remove all functions.

File:
1 edited

Legend:

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

    r224c0e7 rfb4c877  
    326326                        }
    327327                       
     328                        /* Verify that driver removed all functions */
     329                        fibril_rwlock_read_lock(&device_tree.rwlock);
     330                        if (!list_empty(&dev->functions)) {
     331                                fibril_rwlock_read_unlock(&device_tree.rwlock);
     332                                return EIO;
     333                        }
     334                        fibril_rwlock_read_unlock(&device_tree.rwlock);
     335                       
    328336                        detach_driver(&device_tree, dev);
    329337                       
Note: See TracChangeset for help on using the changeset viewer.