Skip to content

Commit

Permalink
Export dump_{write,seek} to binary loader modules
Browse files Browse the repository at this point in the history
If you build aout support as a module, you'll want these exported.

Reported-by: Tetsuo Handa <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
torvalds committed Oct 15, 2010
1 parent cd07202 commit 8fd01d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,7 @@ int dump_write(struct file *file, const void *addr, int nr)
{
return access_ok(VERIFY_READ, addr, nr) && file->f_op->write(file, addr, nr, &file->f_pos) == nr;
}
EXPORT_SYMBOL(dump_write);

int dump_seek(struct file *file, loff_t off)
{
Expand Down Expand Up @@ -2052,3 +2053,4 @@ int dump_seek(struct file *file, loff_t off)
}
return ret;
}
EXPORT_SYMBOL(dump_seek);

0 comments on commit 8fd01d6

Please sign in to comment.