Changeset ef9460b in mainline for uspace/drv/bus/usb/ohci/hc.c


Ignore:
Timestamp:
2011-07-14T21:55:18Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
333c233
Parents:
159100a
Message:

ddf_fun_add_match_id() should copy its string argument.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/hc.c

    r159100a ref9460b  
    151151            "Failed to add OHCI root hub endpoint 0: %s.\n", str_error(ret));
    152152
    153         char *match_str = NULL;
    154         /* DDF needs heap allocated string. */
    155         ret = asprintf(&match_str, "usb&class=hub");
    156         ret = ret > 0 ? 0 : ret;
    157         CHECK_RET_RELEASE(ret,
    158             "Failed to create match-id string: %s.\n", str_error(ret));
    159 
    160         ret = ddf_fun_add_match_id(hub_fun, match_str, 100);
     153        ret = ddf_fun_add_match_id(hub_fun, "usb&class=hub", 100);
    161154        CHECK_RET_RELEASE(ret,
    162155            "Failed to add root hub match-id: %s.\n", str_error(ret));
Note: See TracChangeset for help on using the changeset viewer.