mirror of
https://github.com/gnif/vendor-reset.git
synced 2025-12-29 15:09:28 +01:00
[core] hook: fixed failure to initialize the kprobe struct completely
This commit is contained in:
parent
69e33e3cb8
commit
4dc9a80657
@ -34,9 +34,8 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
*/
|
*/
|
||||||
static int resolve_hook_address(struct ftrace_hook *hook)
|
static int resolve_hook_address(struct ftrace_hook *hook)
|
||||||
{
|
{
|
||||||
struct kprobe kp;
|
struct kprobe kp = { .symbol_name = hook->name };
|
||||||
|
|
||||||
kp.symbol_name = hook->name;
|
|
||||||
if (register_kprobe(&kp))
|
if (register_kprobe(&kp))
|
||||||
{
|
{
|
||||||
pr_warn("unresolved symbol %s\n", hook->name);
|
pr_warn("unresolved symbol %s\n", hook->name);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user