Changeset a044f71 in mainline


Ignore:
Timestamp:
2011-10-15T18:55:07Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
721d4b6e, a8c4e871
Parents:
e3f7418
Message:

Device driver data cannot be freed by the driver itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmast/main.c

    re3f7418 ra044f71  
    164164        }
    165165        free(mdev->luns);
    166         free(mdev);
     166        /*
     167         * Do not free mdev here as it was passed to DDF as device driver data.
     168         * It will be deallocated by DDF when the device is destroyed.
     169         */
    167170        return rc;
    168171}
Note: See TracChangeset for help on using the changeset viewer.