search for: mgmt_dev_err

Displaying 1 result from an estimated 1 matches for "mgmt_dev_err".

2023 Aug 21
0
[PATCH] vdpa_sim_blk: Fix the potential leak of mgmt_dev
...blk.c > @@ -499,12 +499,13 @@ static int __init vdpasim_blk_init(void) > GFP_KERNEL); > if (!shared_buffer) { > ret = -ENOMEM; > - goto parent_err; > + goto mgmt_dev_err; > } > } > > return 0; > - > +mgmt_dev_err: > + vdpa_mgmtdev_unregister(&mgmt_dev); > parent_err: > device_unregister(&vdpasim_blk_mgmtdev); > return ret; > -- > 2.34.1 >