Commit 9bb8df1d authored by Sam Ravnborg's avatar Sam Ravnborg

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
parent 51188b23
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment