Changes in uspace/drv/infrastructure/root/root.c [0c0f823b:e882e3a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/root/root.c
r0c0f823b re882e3a 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.