qcacmn: Fix memory leak of reset_control

The below change:
qcacmn: Use wrappers for bus-oriented OS API's
missed to release the reset_control leading to
a memory leak.

Change-Id: Ifea18db27fc78f686934b096b513128b1a65da9e
This commit is contained in:
Vivek Natarajan 2019-02-26 14:50:22 +05:30 • committed by nshrivas
commit 8ffebb8063

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -255,10 +255,10 @@ int hif_ahb_enable_radio(struct hif_pci_softc *sc,
ret = PTR_ERR(reset_ctl);
goto err_reset;
}
qal_vbus_activate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev,
(struct qdf_vbus_rstctl *)reset_ctl);
qal_vbus_deactivate_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev,
(struct qdf_vbus_rstctl *)reset_ctl);
qal_vbus_release_dev_rstctl((struct qdf_pfm_hndl *)&pdev->dev,
(struct qdf_vbus_rstctl *)reset_ctl);
return 0;