From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 1/2] ASoC: imx-pcm-dma: check kzalloc return value in function snd_imx_open Date: Tue, 18 Sep 2012 22:52:53 -0400 Message-ID: <20120919025253.GK8832@opensource.wolfsonmicro.com> References: <1347960006-23681-1-git-send-email-richard.zhao@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id 9079526514A for ; Wed, 19 Sep 2012 04:52:56 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1347960006-23681-1-git-send-email-richard.zhao@freescale.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Richard Zhao Cc: alsa-devel@alsa-project.org, shawn.guo@linaro.org, s.hauer@pengutronix.de, lrg@ti.com List-Id: alsa-devel@alsa-project.org On Tue, Sep 18, 2012 at 05:20:05PM +0800, Richard Zhao wrote: > It fixed smatch warning: > sound/soc/fsl/imx-pcm-dma.c:112 snd_imx_open() error: potential null dereference 'dma_data'. (kzalloc returns null) Applied both, thanks.