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