mirror of
https://github.com/versity/scoutfs.git
synced 2026-06-05 19:22:35 +00:00
Free send attempts to disconnected clients
Callers who send to specific client connections can get -ENOTCONN if their client has gone away. We forgot to free the send tracking struct in that case. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -355,6 +355,7 @@ static int submit_send(struct super_block *sb,
|
||||
}
|
||||
if (rid != 0) {
|
||||
spin_unlock(&conn->lock);
|
||||
kfree(msend);
|
||||
return -ENOTCONN;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user