diff options
| author | Sam Ravnborg <sam@mars.ravnborg.org> | 2003-09-21 01:23:16 +0200 |
|---|---|---|
| committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2003-09-21 01:23:16 +0200 |
| commit | 9bb8df1d7a1b8d655e71dd42a7921497168cb7a1 (patch) | |
| tree | cdaa4b256e40bd269f324165f47c045f1479aa64 /scripts | |
| parent | 51188b236229f2ffbdc4e3d6dc8fea6e5db598bb (diff) | |
kbuild: modpost, corrected check of mmap()
From: Kristian Høgsberg <krh@bitplanet.net>
Corrected typo in modpost.c. Check the pointer returned, not the pointer
to the mmap funtion
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/modpost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/modpost.c b/scripts/modpost.c index 05369df84c02..5f8629d3425d 100644 --- a/scripts/modpost.c +++ b/scripts/modpost.c @@ -193,7 +193,7 @@ grab_file(const char *filename, unsigned long *size) *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(); } |
