Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2011-10-24 20:06:32 +0200
committerOlaf Hering <ohering@suse.de>2011-10-24 20:06:32 +0200
commitdee2a146034b6bc7ff1e9b1ba58e5c20d16cb2c1 (patch)
tree2388c42b5d72658a6fb2341aed18ef3c0ed18dc2
parent5c0e18081861de874cfc1a7538431f24c0a7eff6 (diff)
- patches.suse/SoN-0009b-netvm-Propagate-page-pfmemalloc-to-skb.patch:rpm-3.0.7-0.7
Add hack to avoid crash in propagate_pfmemalloc_skb (bnc#726075) suse-commit: 488b9f98d8ad733e5652e3e1863d1d6126f7441c
-rw-r--r--include/linux/skbuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index b3d930fefe06..11a2dc01bbbf 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1631,7 +1631,7 @@ static inline struct page *__netdev_alloc_page(struct net_device *dev,
static inline void propagate_pfmemalloc_skb(struct page *page,
struct sk_buff *skb)
{
- if (page->pfmemalloc)
+ if (page && page->pfmemalloc)
skb->pfmemalloc = true;
}