diff options
| author | Michael Brown | 2025-04-21 19:55:30 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-04-21 19:55:30 +0200 |
| commit | 04d0b2fdf9767fed690cdaaf36b4cd60c6bded02 (patch) | |
| tree | ef966585758c70da1f66dbddd2bb6117f92d103e /src/arch/x86/interface/syslinux | |
| parent | [uaccess] Replace real_to_user() with real_to_virt() (diff) | |
| download | ipxe-04d0b2fdf9767fed690cdaaf36b4cd60c6bded02.tar.gz ipxe-04d0b2fdf9767fed690cdaaf36b4cd60c6bded02.tar.xz ipxe-04d0b2fdf9767fed690cdaaf36b4cd60c6bded02.zip | |
[uaccess] Remove redundant read_user()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86/interface/syslinux')
| -rw-r--r-- | src/arch/x86/interface/syslinux/comboot_call.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/x86/interface/syslinux/comboot_call.c b/src/arch/x86/interface/syslinux/comboot_call.c index d8c245757..15539ada5 100644 --- a/src/arch/x86/interface/syslinux/comboot_call.c +++ b/src/arch/x86/interface/syslinux/comboot_call.c @@ -410,7 +410,8 @@ static __asmcall __used void int22 ( struct i386_all_regs *ix86 ) { int len = ix86->regs.cx * COMBOOT_FILE_BLOCKSZ; int rc; fd_set fds; - userptr_t buf = real_to_virt ( ix86->segs.es, ix86->regs.bx ); + void *buf = real_to_virt ( ix86->segs.es, + ix86->regs.bx ); /* Wait for data ready to read */ FD_ZERO ( &fds ); @@ -418,7 +419,7 @@ static __asmcall __used void int22 ( struct i386_all_regs *ix86 ) { select ( &fds, 1 ); - rc = read_user ( fd, buf, 0, len ); + rc = read ( fd, buf, len ); if ( rc < 0 ) { DBG ( "COMBOOT: read failed\n" ); ix86->regs.si = 0; |
