]> asedeno.scripts.mit.edu Git - linux.git/commit
module: make it clear when we're handling the module copy in info->hdr
authorJessica Yu <jeyu@kernel.org>
Fri, 22 Jun 2018 11:59:29 +0000 (13:59 +0200)
committerJessica Yu <jeyu@kernel.org>
Fri, 22 Jun 2018 11:59:29 +0000 (13:59 +0200)
commit81a0abd9f213704fbeeea1550ff202000e3c3cdf
tree0e07a7032a52b760297b182e0ee300b1adfdef36
parent9f2d1e68cf4d641def734adaccfc3823d3575e6c
module: make it clear when we're handling the module copy in info->hdr

In load_module(), it's not always clear whether we're handling the
temporary module copy in info->hdr (which is freed at the end of
load_module()) or if we're handling the module already allocated and
copied to it's final place. Adding an info->mod field and using it
whenever we're handling the temporary copy makes that explicitly clear.

Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c