mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-15 19:00:27 +00:00
No more NULL dereference and kernel panic on current kernels
Found patch on the web: http://users.telenet.be/x86_64/Patches/rtl8192eu-k3.13.patch Before patch, kernel panic due to a NULL dereference in rtw_ndev_notifier_register; this patch solves that problem by not using these methods on kernel versions after a certain number, so it leads me to believe that this patch is meant to make the driver compatible with newer kernel versions.
This commit is contained in:
@@ -116,8 +116,10 @@ void rtw_unregister_netdevs(struct dvobj_priv *dvobj);
|
||||
u16 rtw_recv_select_queue(struct sk_buff *skb);
|
||||
#endif //LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,35)
|
||||
|
||||
#if (LINUX_VERSION_CODE<KERNEL_VERSION(3, 11, 0))
|
||||
int rtw_ndev_notifier_register(void);
|
||||
void rtw_ndev_notifier_unregister(void);
|
||||
#endif
|
||||
|
||||
#include "../os_dep/linux/rtw_proc.h"
|
||||
#endif //PLATFORM_LINUX
|
||||
|
||||
Reference in New Issue
Block a user