diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-27 15:01:37 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-27 15:01:37 +0000 |
commit | fe77f5d92219c04614c22fd46d1c521dfe72cd7b (patch) | |
tree | c3e80a16d0b4070af1ea473d644981d1df410c54 /target/linux/generic/patches-3.2/340-module_alloc_size_check.patch | |
parent | 1ee6958324f44923ed309d2fa911fc432f514694 (diff) |
linux/3.2: R.I.P.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31905 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.2/340-module_alloc_size_check.patch')
-rw-r--r-- | target/linux/generic/patches-3.2/340-module_alloc_size_check.patch | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/target/linux/generic/patches-3.2/340-module_alloc_size_check.patch b/target/linux/generic/patches-3.2/340-module_alloc_size_check.patch deleted file mode 100644 index 88aa325333..0000000000 --- a/target/linux/generic/patches-3.2/340-module_alloc_size_check.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/kernel/module.c -+++ b/kernel/module.c -@@ -2283,12 +2283,15 @@ static void dynamic_debug_remove(struct - - void * __weak module_alloc(unsigned long size) - { -- return size == 0 ? NULL : vmalloc_exec(size); -+ return vmalloc_exec(size); - } - - static void *module_alloc_update_bounds(unsigned long size) - { -- void *ret = module_alloc(size); -+ void *ret = NULL; -+ -+ if (size) -+ ret = module_alloc(size); - - if (ret) { - mutex_lock(&module_mutex); |