buffer.c should be using copy_{to,from}_user, rather than

copy_{to,from}_phys.
This commit is contained in:
Michael Brown
2007-01-11 05:42:06 +00:00
parent 037da9d840
commit fbfed96965
4 changed files with 12 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ int test_buffer ( void ) {
test.source_len = sizeof ( source );
test.dest = dest;
test.dest_len = sizeof ( dest );
test.buffer.addr = virt_to_phys ( dest );
test.buffer.addr = virt_to_user ( dest );
test.buffer.len = sizeof ( dest );
test_fill_buffer ( &test, 20, 38 );

View File

@@ -32,7 +32,7 @@ void test_ftp ( struct sockaddr_tcpip *server, const char *filename ) {
printf ( "FTP fetching %s\n", filename );
memset ( &buffer, 0, sizeof ( buffer ) );
buffer.addr = virt_to_phys ( data );
buffer.addr = virt_to_user ( data );
buffer.len = sizeof ( data );
memset ( &ftp, 0, sizeof ( ftp ) );