public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Bug in linux-2.0.6-test9/fs/direct-io.c
@ 2003-10-28 22:06 Klaas de Waal
  0 siblings, 0 replies; only message in thread
From: Klaas de Waal @ 2003-10-28 22:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: klaas.de.waal

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;
[


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-28 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-28 22:06 Bug in linux-2.0.6-test9/fs/direct-io.c Klaas de Waal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox