Skip to content
Snippets Groups Projects
Commit 773802be authored by Riana Tauro's avatar Riana Tauro Committed by Kamil Konieczny
Browse files

lib/igt_device_scan: fix igt_devices_free


igt_devices_scan returns with empty list if it is called after
anyone calls igt_devices_free. Fixed this with clearing
igt_devs.devs_scanned inside igt_devices_free. Also while at
this, fix memory leak in it.

Remove redudant code from igt_devices_scan and replace it with
call to igt_devices_free

v2: optimize code in igt_devices_scan (Zbigniew)
v3: update commit message (Janusz)
v4: [Kamil] re-worded commit message and commit description

Signed-off-by: default avatarRiana Tauro <riana.tauro@intel.com>
Reviewed-by: default avatarZbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Acked-by: default avatarJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
parent a657a6f7
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment