Commit d7ecc045 authored by Xie Yongji's avatar Xie Yongji Committed by Zheng Zengkai
Browse files

9p/trans_virtio: Remove sysfs file on probe failure

stable inclusion
from stable-5.10.69
commit e464b3876b022c0c4e0eb21518c491c6eb38130c
bugzilla: 182675 https://gitee.com/openeuler/kernel/issues/I4I3ED

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e464b3876b022c0c4e0eb21518c491c6eb38130c

--------------------------------

commit f997ea3b upstream.

This ensures we don't leak the sysfs file if we failed to
allocate chan->vc_wq during probe.

Link: http://lkml.kernel.org/r/20210517083557.172-1-xieyongji@bytedance.com


Fixes: 86c84373 ("net/9p: Add sysfs mount_tag file for virtio 9P device")
Signed-off-by: default avatarXie Yongji <xieyongji@bytedance.com>
Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 236e4095
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment