Skip to content

Commit

Permalink
Merge pull request torvalds#167 from duplyakin/lkl_close_disk
Browse files Browse the repository at this point in the history
lkl: fix close disk in boot.c
  • Loading branch information
Octavian Purdila authored Jun 10, 2016
2 parents 3456a0f + 349aad9 commit 0609875
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/lkl/tests/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,11 @@ int main(int argc, char **argv)
lkl_sys_halt();

lkl_disk_remove(disk);
#ifdef __MINGW32__
CloseHandle(disk.handle);
#else
close(disk.fd);
#endif

return g_test_pass;
}

0 comments on commit 0609875

Please sign in to comment.