X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fnet%2Fsock.h;h=eefeeaf7fc467123b6766da9ff8543b215a87f37;hb=e7bfbb0215ee9b2fc976f7f51e20a8ae02b1d839;hp=5a3a151bd7300455d6da16d6b34ac39a785fb4c7;hpb=14eeee88bfb439a3dc9449f94c23a21930cbe35b;p=mv-sheeva.git diff --git a/include/net/sock.h b/include/net/sock.h index 5a3a151bd73..eefeeaf7fc4 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -860,7 +860,6 @@ static inline void sk_mem_uncharge(struct sock *sk, int size) static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) { - skb_truesize_check(skb); sock_set_flag(sk, SOCK_QUEUE_SHRUNK); sk->sk_wmem_queued -= skb->truesize; sk_mem_uncharge(sk, skb->truesize); @@ -1308,7 +1307,7 @@ static inline int sock_writeable(const struct sock *sk) static inline gfp_t gfp_any(void) { - return in_atomic() ? GFP_ATOMIC : GFP_KERNEL; + return in_softirq() ? GFP_ATOMIC : GFP_KERNEL; } static inline long sock_rcvtimeo(const struct sock *sk, int noblock)