Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754567Ab3ILJeg (ORCPT ); Thu, 12 Sep 2013 05:34:36 -0400 Received: from mail-oa0-f49.google.com ([209.85.219.49]:47565 "EHLO mail-oa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034Ab3ILJee (ORCPT ); Thu, 12 Sep 2013 05:34:34 -0400 MIME-Version: 1.0 In-Reply-To: <1378109699-25245-2-git-send-email-sachin.kamat@linaro.org> References: <1378109699-25245-1-git-send-email-sachin.kamat@linaro.org> <1378109699-25245-2-git-send-email-sachin.kamat@linaro.org> Date: Thu, 12 Sep 2013 11:34:34 +0200 Message-ID: Subject: Re: [PATCH 2/2] dma: ste_dma40: Fix potential null pointer dereference From: Linus Walleij To: Sachin Kamat Cc: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Vinod Koul Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 575 Lines: 17 On Mon, Sep 2, 2013 at 10:14 AM, Sachin Kamat wrote: > kcalloc can return NULL. Check the pointer before dereferencing. > > Signed-off-by: Sachin Kamat Acked-by: Linus Walleij I guess Vinod can take this into fixes for v3.12? Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/