mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
c528145962
commit
8ffebb8063
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue