Changeset a92ce4ef in mainline


Ignore:
Timestamp:
2011-10-14T10:29:39Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
87037cc9
Parents:
d8e698e7
Message:

usbmid: Fix crash on device remove, add note.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/usbmid.c

    rd8e698e7 ra92ce4ef  
    8080                return ret;
    8181        }
    82         /* NOTE: interface memebr points somewhere, but we did not
    83          * allocate that space, s leave it be */
     82        /* NOTE: usbmid->interface points somewhere, but we did not
     83         * allocate that space, so don't touch */
    8484        ddf_fun_destroy(mid_iface->fun);
    85         free(mid_iface);
     85        /* NOTE: mid_iface is invalid at this point, it was assigned to
     86         * mid_iface->fun->driver_data and freed in ddf_fun_destroy */
    8687        return EOK;
    8788}
Note: See TracChangeset for help on using the changeset viewer.