e02c6663e9
Sincea42a5bf87e, we've been closing the file descriptor immediately after loading the devinfo struct. intel_get_and_print_hwconfig_table() re-queries the hwconfig info from the device to print out all the entries, so we need to leave the fd open for this use. I moved the close() call to all paths which exit the for loop's current iteration. Ref:a42a5bf87e("intel/devinfo: add an option to pick platform to print") Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29549>