Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754000AbdHUQSY (ORCPT ); Mon, 21 Aug 2017 12:18:24 -0400 Received: from mga09.intel.com ([134.134.136.24]:9703 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753264AbdHUQSW (ORCPT ); Mon, 21 Aug 2017 12:18:22 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,409,1498546800"; d="scan'208";a="142859400" Date: Mon, 21 Aug 2017 21:51:40 +0530 From: Vinod Koul To: Anton Vasilyev Cc: Andy Gross , David Brown , Dan Williams , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: Re: [PATCH] dmaengine: qcom_hidma: avoid freeing an uninitialized pointer Message-ID: <20170821162139.GP3053@localhost> References: <1502380465-13434-1-git-send-email-vasilyev@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1502380465-13434-1-git-send-email-vasilyev@ispras.ru> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 395 Lines: 13 On Thu, Aug 10, 2017 at 06:54:25PM +0300, Anton Vasilyev wrote: > If device_node np doesn't contain child or first child doesn't have > property "reg" then hidma_mgmt_of_populate_channels() perfoms > deallocation on uninitialized local variable res. > > The patch adds res initialization by NULL. > > Found by Linux Driver Verification project (linuxtesting.org). Applied, thanks -- ~Vinod