Changes in uspace/drv/infrastructure/root/root.c [e882e3a:0c0f823b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/root/root.c
re882e3a r0c0f823b 53 53 #include <ddf/driver.h> 54 54 #include <ddf/log.h> 55 #include <devman.h> 56 #include <ipc/devman.h> 55 57 56 58 #define NAME "root" … … 156 158 if (asprintf(&match_id, PLATFORM_FUN_MATCH_ID_FMT, platform) == -1) { 157 159 ddf_msg(LVL_ERROR, "Memory allocation failed."); 158 free(platform); 159 return ENOMEM; 160 } 161 162 free(platform); 160 return ENOMEM; 161 } 163 162 164 163 /* Add function. */ … … 170 169 if (fun == NULL) { 171 170 ddf_msg(LVL_ERROR, "Error creating function %s", name); 172 free(match_id);173 171 return ENOMEM; 174 172 } … … 178 176 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s", 179 177 name); 180 free(match_id);181 178 ddf_fun_destroy(fun); 182 179 return rc; … … 211 208 * vital for the system. 212 209 */ 213 (void)add_virtual_root_fun(dev);210 add_virtual_root_fun(dev); 214 211 215 212 /* Register root device's children. */
Note:
See TracChangeset
for help on using the changeset viewer.