From 92c313c3b1a2eada9e1f549cc2389fc363574cb7 Mon Sep 17 00:00:00 2001 From: GeorgeBannister Date: Wed, 25 Jan 2023 11:02:40 +0000 Subject: [PATCH] fix cfi trip from usb_recv_tasklet --- include/usb_ops_linux.h | 2 +- os_dep/linux/usb_ops_linux.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/usb_ops_linux.h b/include/usb_ops_linux.h index bf59ca0..dd4665e 100644 --- a/include/usb_ops_linux.h +++ b/include/usb_ops_linux.h @@ -89,7 +89,7 @@ int usb_write16(struct intf_hdl *pintfhdl, u32 addr, u16 val); int usb_write32(struct intf_hdl *pintfhdl, u32 addr, u32 val); int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata); u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem); -void usb_recv_tasklet(void *priv); +void usb_recv_tasklet(unsigned long priv); #ifdef CONFIG_USB_INTERRUPT_IN_PIPE void usb_read_interrupt_complete(struct urb *purb, struct pt_regs *regs); diff --git a/os_dep/linux/usb_ops_linux.c b/os_dep/linux/usb_ops_linux.c index 16fc944..fd03f86 100644 --- a/os_dep/linux/usb_ops_linux.c +++ b/os_dep/linux/usb_ops_linux.c @@ -724,7 +724,7 @@ void usb_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf) int recvbuf2recvframe(PADAPTER padapter, void *ptr); #ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX -void usb_recv_tasklet(void *priv) +void usb_recv_tasklet(unsigned long priv) { struct recv_buf *precvbuf = NULL; _adapter *padapter = (_adapter *)priv; @@ -862,7 +862,7 @@ u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem) } #else /* CONFIG_USE_USB_BUFFER_ALLOC_RX */ -void usb_recv_tasklet(void *priv) +void usb_recv_tasklet(unsigned long priv) { _pkt *pskb; _adapter *padapter = (_adapter *)priv;