[PATCH 3/4] elfops: clear struct module_tables with memset()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andreas Robinson <andr345@xxxxxxxxx>
---
 elfops_core.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/elfops_core.c b/elfops_core.c
index 051e7f7..4283d65 100644
--- a/elfops_core.c
+++ b/elfops_core.c
@@ -240,15 +240,7 @@ static void PERBIT(fetch_tables)(struct elf_file *module,
 	if (!strings || !syms)
 		return;
 
-	tables->pci_table = NULL;
-	tables->usb_table = NULL;
-	tables->ccw_table = NULL;
-	tables->ieee1394_table = NULL;
-	tables->pnp_table = NULL;
-	tables->pnp_card_table = NULL;
-	tables->input_table = NULL;
-	tables->serio_table = NULL;
-	tables->of_table = NULL;
+	memset(tables, 0x00, sizeof(struct module_tables));
 
 	for (i = 0; i < size / sizeof(syms[0]); i++) {
 		char *name = strings + END(syms[i].st_name, conv);
-- 
1.6.0.4


--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux