From 8ffebb8063235295dbd306bc853fc44fd1e0eb45 Mon Sep 17 00:00:00 2001 From: Vivek Natarajan Date: Tue, 26 Feb 2019 14:50:22 +0530 Subject: [PATCH] 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 --- hif/src/snoc/if_ahb_reset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hif/src/snoc/if_ahb_reset.c b/hif/src/snoc/if_ahb_reset.c index df519b6aac42..963678aadfc2 100644 --- a/hif/src/snoc/if_ahb_reset.c +++ b/hif/src/snoc/if_ahb_reset.c @@ -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;