Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vdpa/virtio: fix dev close double free #57

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

yajwu
Copy link
Collaborator

@yajwu yajwu commented Jan 26, 2024

if virtio_pci_dev_state_hw_idx_get fail, tmp_hw_idx freed twice, then cause crash.

RM: 3738339

}
}

rte_free(tmp_hw_idx);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about remove these 2 line?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

if virtio_pci_dev_state_hw_idx_get fail, tmp_hw_idx freed twice,
then cause crash.

RM: 3738339

Signed-off-by: Yajun Wu <yajunw@nvidia.com>
@kailiangz1 kailiangz1 merged commit 7a0395e into Mellanox:main Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants