|
@@ -246,9 +246,9 @@ struct wlan_objmgr_vdev *wlan_objmgr_vdev_obj_create(
|
|
|
/* Component object failed to be created, clean up the object */
|
|
|
} else if (obj_status == QDF_STATUS_E_FAILURE) {
|
|
|
/* Clean up the psoc */
|
|
|
- wlan_objmgr_vdev_obj_delete(vdev);
|
|
|
obj_mgr_err("VDEV comp objects creation failed for vdev-id:%d",
|
|
|
vdev->vdev_objmgr.vdev_id);
|
|
|
+ wlan_objmgr_vdev_obj_delete(vdev);
|
|
|
/*
|
|
|
* Set params osifp to NULL as it is freed during vdev obj
|
|
|
* delete, This prevents caller from performing double free.
|