We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23760d0 commit 53e8a35Copy full SHA for 53e8a35
main.c
@@ -319,6 +319,13 @@ static int physmem_rw(void)
319
HANDLE map_hdl;
320
uint8_t *virt_addr;
321
322
+ if (!is_inpoutx64_driver_open()) {
323
+ pr_err("Failed to open Inpoutx64 driver\n");
324
+ inpoutx64_deinit();
325
+
326
+ return -EIO;
327
+ }
328
329
if (rw_sz == 0)
330
return 0;
331
@@ -420,12 +427,6 @@ int wmain(int wargc, wchar_t *wargv[])
420
427
return err;
421
428
422
429
inpoutx64_init();
423
- if (!is_inpoutx64_driver_open()) {
424
- pr_err("Failed to open Inpoutx64 driver\n");
425
- inpoutx64_deinit();
426
-
- return -EIO;
- }
430
431
switch (cmd) {
432
case CMD_READ:
0 commit comments