diff options
Diffstat (limited to 'net/rxrpc/ar-accept.c')
| -rw-r--r-- | net/rxrpc/ar-accept.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/rxrpc/ar-accept.c b/net/rxrpc/ar-accept.c index 77228f28fa36..6d79310fcaae 100644 --- a/net/rxrpc/ar-accept.c +++ b/net/rxrpc/ar-accept.c | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | #include <linux/in.h> | 17 | #include <linux/in.h> |
| 18 | #include <linux/in6.h> | 18 | #include <linux/in6.h> |
| 19 | #include <linux/icmp.h> | 19 | #include <linux/icmp.h> |
| 20 | #include <linux/gfp.h> | ||
| 20 | #include <net/sock.h> | 21 | #include <net/sock.h> |
| 21 | #include <net/af_rxrpc.h> | 22 | #include <net/af_rxrpc.h> |
| 22 | #include <net/ip.h> | 23 | #include <net/ip.h> |
| @@ -88,6 +89,11 @@ static int rxrpc_accept_incoming_call(struct rxrpc_local *local, | |||
| 88 | 89 | ||
| 89 | /* get a notification message to send to the server app */ | 90 | /* get a notification message to send to the server app */ |
| 90 | notification = alloc_skb(0, GFP_NOFS); | 91 | notification = alloc_skb(0, GFP_NOFS); |
| 92 | if (!notification) { | ||
| 93 | _debug("no memory"); | ||
| 94 | ret = -ENOMEM; | ||
| 95 | goto error_nofree; | ||
| 96 | } | ||
| 91 | rxrpc_new_skb(notification); | 97 | rxrpc_new_skb(notification); |
| 92 | notification->mark = RXRPC_SKB_MARK_NEW_CALL; | 98 | notification->mark = RXRPC_SKB_MARK_NEW_CALL; |
| 93 | 99 | ||
| @@ -189,6 +195,7 @@ invalid_service: | |||
| 189 | ret = -ECONNREFUSED; | 195 | ret = -ECONNREFUSED; |
| 190 | error: | 196 | error: |
| 191 | rxrpc_free_skb(notification); | 197 | rxrpc_free_skb(notification); |
| 198 | error_nofree: | ||
| 192 | _leave(" = %d", ret); | 199 | _leave(" = %d", ret); |
| 193 | return ret; | 200 | return ret; |
| 194 | } | 201 | } |
