mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-09-26 17:44:16 +00:00
fix: support ARM32 ZLP kprobe arguments
Read the first kernel argument from ARM_r0 on 32-bit ARM, where regs_get_kernel_argument() is unavailable.
Fixes #82
(cherry picked from commit 40f00e69af)
This commit is contained in:
@@ -149,7 +149,11 @@ static int usb_submit_urb_pre_handler(struct kprobe *p, struct pt_regs *regs)
|
|||||||
|
|
||||||
(void)p;
|
(void)p;
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARM)
|
||||||
|
urb = (struct urb *)regs->ARM_r0;
|
||||||
|
#else
|
||||||
urb = (struct urb *)regs_get_kernel_argument(regs, 0);
|
urb = (struct urb *)regs_get_kernel_argument(regs, 0);
|
||||||
|
#endif
|
||||||
if (is_bluetooth_acl_endpoint(urb))
|
if (is_bluetooth_acl_endpoint(urb))
|
||||||
enable_zlp(urb);
|
enable_zlp(urb);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user