aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index ede78b144dcf..8c5600cfcc3e 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -784,8 +784,9 @@ new_mtu:
784 break; 784 break;
785 785
786 rc = tipc_wait_for_sndmsg(sock, &timeo); 786 rc = tipc_wait_for_sndmsg(sock, &timeo);
787 if (rc)
788 kfree_skb_list(buf);
787 } while (!rc); 789 } while (!rc);
788
789exit: 790exit:
790 if (iocb) 791 if (iocb)
791 release_sock(sk); 792 release_sock(sk);
@@ -898,6 +899,8 @@ next:
898 break; 899 break;
899 } 900 }
900 rc = tipc_wait_for_sndpkt(sock, &timeo); 901 rc = tipc_wait_for_sndpkt(sock, &timeo);
902 if (rc)
903 kfree_skb_list(buf);
901 } while (!rc); 904 } while (!rc);
902exit: 905exit:
903 if (iocb) 906 if (iocb)