Skip to contentSkip to conversation

Typo in scripts/postmod.c

DISCUSSION Kristian Høgsberg 2 participants 2 messages Sep 15, 2003 – Sep 20, 2003

lore
Share & tools
lore
#0 lore raw

Hi Rusty,

There's a small typo in scripts/postmod.c, see patch below.

regards, Kristian

--- orig/linux-2.6.0-test5/scripts/modpost.c 2003-09-08
21:49:55.000000000 +0200
+++ linux-2.6.0-test5/scripts/modpost.c 2003-09-15 12:00:05.000000000 +0200 @@ -193,7 +193,7 @@

        *size = st.st_size;
        map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
-       if (mmap == MAP_FAILED) {
+       if (map == MAP_FAILED) {
                perror(filename);
                abort();
        }
#1 lore raw
Quoted 3 lines · Kristian Høgsberg

Hi Rusty,

There's a small typo in scripts/postmod.c, see patch below.

Good spot.
I have applied this to my local tree, and forwarded to Linus.

Sam