Skip to content

Commit

Permalink
wrong mmap size
Browse files Browse the repository at this point in the history
  • Loading branch information
bax-smile committed Aug 30, 2024
1 parent 904d802 commit 045c947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uio_kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int __init uio_kbd_init(void)
info->mem[0].name = "basic_mem_map";
info->mem[0].memtype = UIO_MEM_LOGICAL;
info->mem[0].addr = (phys_addr_t) mem_area;
info->mem[0].size = sizeof(mem_area);
info->mem[0].size = PAGE_SIZE;

ret = uio_register_device(dev, info);
if (ret < 0) {
Expand Down

0 comments on commit 045c947

Please sign in to comment.