aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/handshake/netlink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/handshake/netlink.c b/net/handshake/netlink.c
index 7ec8a76c3c8a..f5dc170689d9 100644
--- a/net/handshake/netlink.c
+++ b/net/handshake/netlink.c
@@ -139,15 +139,16 @@ int handshake_nl_accept_doit(struct sk_buff *skb, struct genl_info *info)
goto out_complete;
}
err = req->hr_proto->hp_accept(req, info, fd);
- if (err)
+ if (err) {
+ fput(sock->file);
goto out_complete;
+ }
trace_handshake_cmd_accept(net, req, req->hr_sk, fd);
return 0;
out_complete:
handshake_complete(req, -EIO, NULL);
- fput(sock->file);
out_status:
trace_handshake_cmd_accept_err(net, req, NULL, err);
return err;
lo1-0/+6 2018-08-28spi: Fix double IDR allocation with DT aliasesGeert Uytterhoeven1-11/+11 2018-08-15spi: fix IDR collision on systems with both fixed and dynamic SPI bus numbersKirill Kapranov1-0/+9 2018-08-03spi: spi-mem: Constify spi_mem->nameBoris Brezillon1-1/+1 2018-08-02mtd: m25p80: Call spi_mem_get_name() to let controller set a custom nameFrieder Schrempf1-0/+3 2018-08-02spi: spi-mem: Extend the SPI mem interface to set a custom memory nameFrieder Schrempf2-0/+40 2018-08-02spi: spi-mem: Fix a typo in the documentation of struct spi_memFrieder Schrempf1-1/+1 2018-08-02spi: uniphier: remove unnecessary include headersKeiji Hayashibara1-2/+0 2018-08-01spi: spi-gpio: add SPI_3WIRE supportLorenzo Bianconi3-1/+33 2018-08-01spi: add flags parameter to txrx_word function pointersLorenzo Bianconi8-44/+57 2018-08-01spi: add SPI controller driver for UniPhier SoCKeiji Hayashibara3-0/+539