Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d196f83 authored by Manoj Kumar N D's avatar Manoj Kumar N D Committed by Gerrit - the friendly Code Review server
Browse files

dsp : assign null to pointer that has freed address



After freeing up the memory assign null to the pointer
that had the address.

Change-Id: I242a936c434dc449ec9fd19b0c34e843c3cf0913
Signed-off-by: default avatarManoj Kumar N D <quic_mnd@quicinc.com>
parent 9e949d22
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
 */
#include <linux/slab.h>
#include <linux/fs.h>
@@ -458,6 +459,7 @@ static void delete_cal_block(struct cal_block_data *cal_block)
		cal_block->map_data.dma_buf = NULL;
	}
	kfree(cal_block);
	cal_block = NULL;
done:
	return;
}