diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2009-10-06 04:33:58 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2009-10-06 04:35:06 -0400 |
commit | 6a03f5f0a0a660895eac03749165c1f9313ef2b8 (patch) | |
tree | 24fbcac88baf4c487965ec3edceb9621985dcf56 /drivers/s390/cio/chp.c | |
parent | dfcc3e6a8b8c10bccc532e6bd5a25d50ccb14b25 (diff) |
[S390] module: fix memory leak in s390 module loader
The s390 version of module_frob_arch_sections allocates additional
syminfos for got and plt offsets. These syminfos are freed on
sucessful module load. If the module fails to load (e.g. missing
dependency when using insmod instead of modprobe) this area is not
freed.
This patch lets module_free free this area. Please note, we have to
set the pointer to NULL since module_free is called several times
from the generic code.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chp.c')
0 files changed, 0 insertions, 0 deletions