[PATCH 6.5 118/321] vfio/mdev: Fix a null-ptr-deref bug for mdev_unregister_parent()