aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 03684e702d13..2c7d60ca3548 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1278,7 +1278,7 @@ static inline int sock_writeable(const struct sock *sk)
1278 1278
1279static inline gfp_t gfp_any(void) 1279static inline gfp_t gfp_any(void)
1280{ 1280{
1281 return in_softirq() ? GFP_ATOMIC : GFP_KERNEL; 1281 return in_atomic() ? GFP_ATOMIC : GFP_KERNEL;
1282} 1282}
1283 1283
1284static inline long sock_rcvtimeo(const struct sock *sk, int noblock) 1284static inline long sock_rcvtimeo(const struct sock *sk, int noblock)