diff options
Diffstat (limited to 'libre/ndiswrapper-module/kernel-5.4.patch')
-rw-r--r-- | libre/ndiswrapper-module/kernel-5.4.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libre/ndiswrapper-module/kernel-5.4.patch b/libre/ndiswrapper-module/kernel-5.4.patch deleted file mode 100644 index 9e3212d82..000000000 --- a/libre/ndiswrapper-module/kernel-5.4.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -u -r ndiswrapper-1.62/driver/wrapndis.c ndiswrapper-1.62-5.4/driver/wrapndis.c ---- ndiswrapper-1.62/driver/wrapndis.c 2019-02-11 04:11:14.000000000 +0000 -+++ ndiswrapper-1.62-5.4/driver/wrapndis.c 2019-11-26 00:02:39.035464963 +0000 -@@ -457,10 +457,18 @@ - for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { - skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; - sg_element++; -+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0) - sg_element->length = frag->size; -+#else -+ sg_element->length = skb_frag_size(frag); -+#endif - sg_element->address = - pci_map_page(wnd->wd->pci.pdev, skb_frag_page(frag), -+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0) - frag->page_offset, frag->size, -+#else -+ skb_frag_off(frag), skb_frag_size(frag), -+#endif - PCI_DMA_TODEVICE); - TRACE3("%llx, %u", sg_element->address, sg_element->length); - } |