diff options
author | Gonzalo Exequiel Pedone | 2024-03-07 23:31:07 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-03-07 23:31:07 -0300 |
commit | 0acd50d3f482a726f61badd88e37967e23a021f6 (patch) | |
tree | b0a1b18bebc8b4aa734791ee41d656f8de4d34fc /0003-Disable-address-patch-in-x86.patch | |
download | aur-0acd50d3f482a726f61badd88e37967e23a021f6.tar.gz |
New package.
Diffstat (limited to '0003-Disable-address-patch-in-x86.patch')
-rw-r--r-- | 0003-Disable-address-patch-in-x86.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/0003-Disable-address-patch-in-x86.patch b/0003-Disable-address-patch-in-x86.patch new file mode 100644 index 000000000000..1e48a675915b --- /dev/null +++ b/0003-Disable-address-patch-in-x86.patch @@ -0,0 +1,34 @@ +--- a/opal/mca/patcher/overwrite/patcher_overwrite_module.c ++++ b/opal/mca/patcher/overwrite/patcher_overwrite_module.c +@@ -312,30 +312,7 @@ + + static int mca_patcher_overwrite_patch_address (uintptr_t sys_addr, uintptr_t hook_addr) + { +- mca_patcher_base_patch_t *patch; +- int rc; +- +- patch = OBJ_NEW(mca_patcher_base_patch_t); +- if (OPAL_UNLIKELY(NULL == patch)) { +- return OPAL_ERR_OUT_OF_RESOURCE; +- } +- +- patch->patch_orig = sys_addr; +- patch->patch_value = hook_addr; +- +- opal_mutex_lock (&mca_patcher_overwrite_module.patch_list_mutex); +- do { +- rc = mca_patcher_overwrite_apply_patch (patch); +- if (OPAL_SUCCESS != rc) { +- break; +- } +- +- opal_list_append (&mca_patcher_overwrite_module.patch_list, &patch->super); +- } while (0); +- +- opal_mutex_unlock (&mca_patcher_overwrite_module.patch_list_mutex); +- +- return OPAL_SUCCESS; ++ return OPAL_ERROR; + } + + static int mca_patcher_overwrite_patch_symbol (const char *func_symbol_name, uintptr_t func_new_addr, |