diff options
author | Jessica Yu <jeyu@kernel.org> | 2018-06-22 14:00:01 +0200 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2018-06-22 14:00:01 +0200 |
commit | 5fdc7db6448a4f558f298b1c98d6d124fdf2ad95 (patch) | |
tree | 0fa4e7eedfa836c88c0d3bde35fb1c03f457988d /drivers/leds/leds-max8997.c | |
parent | 81a0abd9f213704fbeeea1550ff202000e3c3cdf (diff) | |
download | blackbird-obmc-linux-5fdc7db6448a4f558f298b1c98d6d124fdf2ad95.tar.gz blackbird-obmc-linux-5fdc7db6448a4f558f298b1c98d6d124fdf2ad95.zip |
module: setup load info before module_sig_check()
We want to be able to log the module name in early error messages, such as
when module signature verification fails. Previously, the module name is
set in layout_and_allocate(), meaning that any error messages that happen
before (such as those in module_sig_check()) won't be logged with a module
name, which isn't terribly helpful.
In order to do this, reshuffle the order in load_module() and set up
load info earlier so that we can log the module name along with these
error messages. This requires splitting rewrite_section_headers() out of
setup_load_info().
While we're at it, clean up and split up the operations done in
layout_and_allocate(), setup_load_info(), and rewrite_section_headers()
more cleanly so these functions only perform what their names suggest.
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'drivers/leds/leds-max8997.c')
0 files changed, 0 insertions, 0 deletions