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

Commit a435d142 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: gadget: f_uac1.c: Fix bug in accessing freed buffer pointer"

parents 416dc16a f9e849ca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * f_audio.c -- USB Audio class function driver
 *
 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
 * Copyright (C) 2008 Bryan Wu <cooloney@kernel.org>
 * Copyright (C) 2008 Analog Devices, Inc
 *
@@ -437,8 +437,8 @@ static void f_audio_buffer_free(struct f_audio_buf *audio_buf)
{
	if (audio_buf) {
		kfree(audio_buf->buf);
		kfree(audio_buf);
		audio_buf->buf = NULL;
		kfree(audio_buf);
		audio_buf = NULL;
	}
}