fixup! cmd_show_super: Fix device model printing

This commit is contained in:
Kent Overstreet 2025-10-11 20:11:58 -04:00
parent 248c7f35f3
commit 4050199158

View File

@ -648,10 +648,12 @@ char *fd_to_dev_model(int fd)
free(sysfs_path);
return strdup("(unknown model)");
got_model:
char* model = read_file_str(AT_FDCWD, model_path);
free(model_path);
free(sysfs_path);
return model;
{
char *model = read_file_str(AT_FDCWD, model_path);
free(model_path);
free(sysfs_path);
return model;
}
} else {
return strdup("(image file)");
}