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

Commit ee36c86e authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: fix DMA memory allocation success check" into msm-4.9

parents 8b2d88b2 8f58f5f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2721,7 +2721,7 @@ static int ipa_fltrt_alloc_init_tbl_hdr(
	params->nhash_hdr.base = dma_alloc_coherent(ipahal_ctx->ipa_pdev,
		params->nhash_hdr.size,
		&params->nhash_hdr.phys_base, GFP_KERNEL);
	if (!params->nhash_hdr.size) {
	if (!params->nhash_hdr.base) {
		IPAHAL_ERR("fail to alloc DMA buff of size %d\n",
			params->nhash_hdr.size);
		goto nhash_alloc_fail;