mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 19:51:27 +00:00
isert: Make sure we cleanup correctly when closeing connection device
Avoid double free in rare corner cases such as initiator that keeps connecting, not sending login request and then disconnecting Signed-off-by: Yan Burman <yanb@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5559 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -492,6 +492,7 @@ static int isert_release(struct inode *inode, struct file *filp)
|
||||
TRACE_ENTRY();
|
||||
|
||||
vunmap(dev->sg_virt);
|
||||
dev->sg_virt = NULL;
|
||||
dev->is_discovery = 0;
|
||||
|
||||
if (dev->conn) {
|
||||
|
||||
Reference in New Issue
Block a user