From a797f2a3058c57624b9173a5563c8cc49f8af6e7 Mon Sep 17 00:00:00 2001 From: Chvalov Date: Tue, 24 Oct 2023 21:48:05 +0300 Subject: [PATCH] Fix label error kernetix.c:397:9: error: a label can only be part of a statement and a declaration is not a statement --- PlatboxDrv/linux/driver/kernetix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PlatboxDrv/linux/driver/kernetix.c b/PlatboxDrv/linux/driver/kernetix.c index 45e3186..2530875 100644 --- a/PlatboxDrv/linux/driver/kernetix.c +++ b/PlatboxDrv/linux/driver/kernetix.c @@ -393,7 +393,7 @@ static long int kernetix_ioctl(struct file *file, unsigned int cmd, unsigned lon } case IOCTL_GET_EFI_MEMMAP_ADDRESS: - + { UINT64 *addr_result; if ( copy_from_user(&addr_result, p, sizeof(UINT64)) != 0) @@ -403,6 +403,7 @@ static long int kernetix_ioctl(struct file *file, unsigned int cmd, unsigned lon put_user( (long unsigned int *) &efi.memmap, (unsigned long **)addr_result ); break; + } case IOCTL_READ_IO_PORT: if (copy_from_user(&_io, p, sizeof(IO_PORT_CALL))) {