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:Xie Yongji <xieyongji@bytedance.com> Signed-off-by:
Dominique Martinet <asmadeus@codewreck.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Weilong Chen <chenweilong@huawei.com> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment