Skip to contentSkip to conversation

Bug in linux-2.0.6-test9/fs/direct-io.c

DISCUSSION Klaas de Waal 1 participant 1 message Oct 28, 2003

lore
Share & tools
lore
#0 lore raw

Bug in parameter of ZERO_PAGE macro in line 679 of fb/direct-io.c
Parameter dio->cur_user_address has to be dio->curr_user_address.
This bug shows when compling for MIPS little endian as target, not when compiling for X86.

Context diff (direct-io.c.sav is original file, direct-io.c is fixed file):

*** direct-io.c 2003-10-28 22:59:00.000000000 +0100
--- direct-io.c.sav 2003-09-28 02:50:29.000000000 +0200
***************
*** 676,682 ****

       this_chunk_bytes = this_chunk_blocks << dio->blkbits;
!       page = ZERO_PAGE(dio->curr_user_address);
       if (submit_page_section(dio, page, 0, this_chunk_bytes,
                               dio->next_block_for_io))
               return;

--- 676,682 ----

       this_chunk_bytes = this_chunk_blocks << dio->blkbits;
!       page = ZERO_PAGE(dio->cur_user_address);
       if (submit_page_section(dio, page, 0, this_chunk_bytes,
                               dio->next_block_for_io))
               return;

[