File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -648,7 +648,7 @@ process_accumulated_relocations(struct module *me,
648
648
kfree (bucket_iter );
649
649
}
650
650
651
- kfree (* relocation_hashtable );
651
+ kvfree (* relocation_hashtable );
652
652
}
653
653
654
654
static int add_relocation_to_accumulate (struct module * me , int type ,
@@ -752,9 +752,10 @@ initialize_relocation_hashtable(unsigned int num_relocations,
752
752
753
753
hashtable_size <<= should_double_size ;
754
754
755
- * relocation_hashtable = kmalloc_array (hashtable_size ,
756
- sizeof (* * relocation_hashtable ),
757
- GFP_KERNEL );
755
+ /* Number of relocations may be large, so kvmalloc it */
756
+ * relocation_hashtable = kvmalloc_array (hashtable_size ,
757
+ sizeof (* * relocation_hashtable ),
758
+ GFP_KERNEL );
758
759
if (!* relocation_hashtable )
759
760
return 0 ;
760
761
You can’t perform that action at this time.
0 commit comments