Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jayluxferro/8b6f9f457082b8d148d9d6b681475622 to your computer and use it in GitHub Desktop.
Save jayluxferro/8b6f9f457082b8d148d9d6b681475622 to your computer and use it in GitHub Desktop.
VMWare workstation 12.5.7 kernel 4.13 atomic_inc patch
diff -Naur vmnet-only.orig/bridge.c vmnet-only/bridge.c
--- vmnet-only/bridge.c 2017-06-26 22:08:39.148034785 +1000
+++ vmnet-only/bridge.c 2017-07-16 11:37:01.325802125 +1000
@@ -636,7 +636,7 @@
unsigned long flags;
int i;
- atomic_inc(&clone->users);
+ clone = skb_get(clone);
clone->dev = dev;
clone->protocol = eth_type_trans(clone, dev);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment