Skip to content

Commit 0609875

Browse files
author
Octavian Purdila
authored
Merge pull request torvalds#167 from duplyakin/lkl_close_disk
lkl: fix close disk in boot.c
2 parents 3456a0f + 349aad9 commit 0609875

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/lkl/tests/boot.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,11 @@ int main(int argc, char **argv)
822822
lkl_sys_halt();
823823

824824
lkl_disk_remove(disk);
825+
#ifdef __MINGW32__
826+
CloseHandle(disk.handle);
827+
#else
825828
close(disk.fd);
829+
#endif
826830

827831
return g_test_pass;
828832
}

0 commit comments

Comments
 (0)