Fix us_media_topology_init()

Allocate the topology structure.
This commit is contained in:
Marek Marczykowski-Górecki
2026-07-08 19:33:07 +02:00
parent 0301608b8f
commit dae9301e63

View File

@@ -170,6 +170,8 @@ struct media_v2_topology *us_media_topology_init(int fd) {
goto error;
}
US_CALLOC(topology, 1);
if (us_xioctl(fd, MEDIA_IOC_G_TOPOLOGY, topology) < 0) {
_LOG_PERROR("Can't query media topology info");
goto error;