Changes in uspace/drv/infrastructure/root/root.c [0c0f823b:f943dd3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/root/root.c
r0c0f823b rf943dd3 158 158 if (asprintf(&match_id, PLATFORM_FUN_MATCH_ID_FMT, platform) == -1) { 159 159 ddf_msg(LVL_ERROR, "Memory allocation failed."); 160 return ENOMEM; 161 } 160 free(platform); 161 return ENOMEM; 162 } 163 164 free(platform); 162 165 163 166 /* Add function. */ … … 169 172 if (fun == NULL) { 170 173 ddf_msg(LVL_ERROR, "Error creating function %s", name); 174 free(match_id); 171 175 return ENOMEM; 172 176 } … … 176 180 ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s", 177 181 name); 182 free(match_id); 178 183 ddf_fun_destroy(fun); 179 184 return rc; … … 208 213 * vital for the system. 209 214 */ 210 add_virtual_root_fun(dev);215 (void) add_virtual_root_fun(dev); 211 216 212 217 /* Register root device's children. */
Note:
See TracChangeset
for help on using the changeset viewer.