Revert "net/iucv: fix use after free in iucv_sock_close()"
This reverts commit 438fa4e57f
.
This commit is contained in:
parent
eb36756b64
commit
9a94739948
1 changed files with 2 additions and 2 deletions
|
@ -359,8 +359,8 @@ static void iucv_sever_path(struct sock *sk, int with_user_data)
|
||||||
struct iucv_sock *iucv = iucv_sk(sk);
|
struct iucv_sock *iucv = iucv_sk(sk);
|
||||||
struct iucv_path *path = iucv->path;
|
struct iucv_path *path = iucv->path;
|
||||||
|
|
||||||
/* Whoever resets the path pointer, must sever and free it. */
|
if (iucv->path) {
|
||||||
if (xchg(&iucv->path, NULL)) {
|
iucv->path = NULL;
|
||||||
if (with_user_data) {
|
if (with_user_data) {
|
||||||
low_nmcpy(user_data, iucv->src_name);
|
low_nmcpy(user_data, iucv->src_name);
|
||||||
high_nmcpy(user_data, iucv->dst_name);
|
high_nmcpy(user_data, iucv->dst_name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue