From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH] dmaengine: qcom_hidma: avoid freeing an uninitialized pointer Date: Mon, 21 Aug 2017 21:51:40 +0530 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 Return-path: Content-Disposition: inline In-Reply-To: <1502380465-13434-1-git-send-email-vasilyev@ispras.ru> Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: linux-arm-msm@vger.kernel.org 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