{
FILE *fp;
char *line = NULL;
- size_t size;
+ size_t size = 0;
char name[11];
bool found = false;
uint32_t num;
break;
}
}
+ free(line);
fclose(fp);
return found ? num : UNNAMED_MAJOR;
}
hw = &dev->hw;
hw->port_id = data->port_id;
- dev->port_id = data->port_id;
VIRTIO_OPS(hw) = &virtio_user_ops;
hw->intr_lsc = 1;