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:
Magnus Bergmark
2015-08-18 21:10:30 +02:00
parent 1387cf623d
commit 416453cadc
5 changed files with 20 additions and 6 deletions

View File

@@ -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