aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r--drivers/scsi/iscsi_tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 4e9f0d9a55ea..7ce177e30a53 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -29,6 +29,7 @@
29#include <linux/types.h> 29#include <linux/types.h>
30#include <linux/list.h> 30#include <linux/list.h>
31#include <linux/inet.h> 31#include <linux/inet.h>
32#include <linux/file.h>
32#include <linux/blkdev.h> 33#include <linux/blkdev.h>
33#include <linux/crypto.h> 34#include <linux/crypto.h>
34#include <linux/delay.h> 35#include <linux/delay.h>
@@ -1878,7 +1879,7 @@ iscsi_tcp_release_conn(struct iscsi_conn *conn)
1878 iscsi_conn_restore_callbacks(tcp_conn); 1879 iscsi_conn_restore_callbacks(tcp_conn);
1879 sock_put(tcp_conn->sock->sk); 1880 sock_put(tcp_conn->sock->sk);
1880 1881
1881 sock_release(tcp_conn->sock); 1882 sockfd_put(tcp_conn->sock);
1882 tcp_conn->sock = NULL; 1883 tcp_conn->sock = NULL;
1883 conn->recv_lock = NULL; 1884 conn->recv_lock = NULL;
1884} 1885}