Changeset c6588ce in mainline for uspace/drv/infrastructure/root/root.c
- Timestamp:
- 2012-05-05T08:12:17Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ee04c28
- Parents:
- 2cc7f16 (diff), d21e935c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/root/root.c
r2cc7f16 rc6588ce 53 53 #include <ddf/driver.h> 54 54 #include <ddf/log.h> 55 #include <devman.h>56 #include <ipc/devman.h>57 55 58 56 #define NAME "root" … … 158 156 if (asprintf(&match_id, PLATFORM_FUN_MATCH_ID_FMT, platform) == -1) { 159 157 ddf_msg(LVL_ERROR, "Memory allocation failed."); 160 return ENOMEM; 161 } 158 free(platform); 159 return ENOMEM; 160 } 161 162 free(platform); 162 163 163 164 /* Add function. */ … … 169 170 if (fun == NULL) { 170 171 ddf_msg(LVL_ERROR, "Error creating function %s", name); 172 free(match_id); 171 173 return ENOMEM; 172 174 } … … 176 178 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s", 177 179 name); 180 free(match_id); 178 181 ddf_fun_destroy(fun); 179 182 return rc; … … 208 211 * vital for the system. 209 212 */ 210 add_virtual_root_fun(dev);213 (void) add_virtual_root_fun(dev); 211 214 212 215 /* Register root device's children. */
Note:
See TracChangeset
for help on using the changeset viewer.