Christophe Leroy f7f18e30b4 powerpc/kprobes: Handle error returned by set_memory_rox()
set_memory_rox() can fail.

In case it fails, free allocated memory and return NULL.

Link: https://github.com/KSPP/linux/issues/7
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/b4907cf4339bd086abc40430d91311436cb0c18e.1708078401.git.christophe.leroy@csgroup.eu
2024-02-22 21:55:33 +11:00
..
2024-01-09 12:57:46 -08:00
2024-01-08 16:22:47 -08:00
2021-12-09 22:41:21 +11:00
2023-10-01 23:09:02 +11:00
2022-05-05 22:12:44 +10:00
2022-05-08 22:15:40 +10:00
2022-05-05 22:12:44 +10:00
2023-10-10 13:35:55 -06:00
2023-08-31 12:43:10 -07:00
2022-09-26 23:00:14 +10:00
2020-12-04 01:01:09 +11:00
2023-11-09 13:37:28 -08:00
2022-09-26 23:00:14 +10:00
2021-12-09 22:41:21 +11:00
2022-05-08 22:15:40 +10:00
2023-10-10 13:35:55 -06:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:40 +10:00
2022-09-26 23:00:13 +10:00
2022-09-26 22:47:37 +10:00
2023-11-27 22:01:14 +11:00
2021-12-09 22:41:21 +11:00