mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ipv6: fix error propagation in ip6_ufo_append_data()
We should return errcode from sock_alloc_send_skb() Signed-off-by: Zheng Yan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3c20f72f91
commit
504744e4ed
1 changed files with 1 additions and 1 deletions
|
|
@ -1123,7 +1123,7 @@ static inline int ip6_ufo_append_data(struct sock *sk,
|
|||
hh_len + fragheaderlen + transhdrlen + 20,
|
||||
(flags & MSG_DONTWAIT), &err);
|
||||
if (skb == NULL)
|
||||
return -ENOMEM;
|
||||
return err;
|
||||
|
||||
/* reserve space for Hardware header */
|
||||
skb_reserve(skb, hh_len);
|
||||
|
|
|
|||
Loading…
Reference in a new issue