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

Changeset 64f85f5 in mainline for uspace/srv/devman/driver.c


Ignore:
Timestamp:
2018-11-14T19:40:01Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
b0beb9b1
Parents:
e3fa1720
git-author:
Jakub Jermar <jakub@…> (2018-11-13 19:18:23)
git-committer:
Jakub Jermar <jakub@…> (2018-11-14 19:40:01)
Message:

Fix use of uninitialized variable

File:
1 edited

Legend:

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

    re3fa1720 r64f85f5  
    224224        int cur_score;
    225225        link_t *link;
    226         driver_t *drv;
    227226
    228227        fibril_mutex_lock(&drivers_list->drivers_mutex);
     
    231230                cur_score = get_match_score(node->drv, node);
    232231
    233                 link = list_next(&drv->drivers, &drivers_list->drivers);
     232                link = list_next(&node->drv->drivers, &drivers_list->drivers);
    234233
    235234                /*
     
    237236                 */
    238237                while (link != NULL) {
    239                         drv = list_get_instance(link, driver_t, drivers);
     238                        driver_t *drv = list_get_instance(link, driver_t,
     239                            drivers);
    240240                        score = get_match_score(drv, node);
    241241                        if (score == cur_score) {
Note: See TracChangeset for help on using the changeset viewer.