From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932306AbaLWPrn (ORCPT ); Tue, 23 Dec 2014 10:47:43 -0500 Received: from mga01.intel.com ([192.55.52.88]:31730 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932243AbaLWPrm (ORCPT ); Tue, 23 Dec 2014 10:47:42 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,632,1413270000"; d="scan'208";a="652225846" Date: Tue, 23 Dec 2014 17:47:38 +0200 From: Mika Westerberg To: Arend van Spriel Cc: linux-wireless@vger.kernel.org, Brett Rudley , Hante Meuleman , Kalle Valo , "John W. Linville" , Christophe Prigent , linux-kernel@vger.kernel.org Subject: Re: [PATCH] brcmfmac: Do not crash if platform data is not populated Message-ID: <20141223154738.GM1314@lahna.fi.intel.com> References: <1419346112-173303-1-git-send-email-mika.westerberg@linux.intel.com> <54998C31.9090500@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54998C31.9090500@broadcom.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 23, 2014 at 04:37:21PM +0100, Arend van Spriel wrote: > On 12/23/14 15:48, Mika Westerberg wrote: > >The driver looks for pdata->oob_irq_supported to find out if wowl can be > >supported. However, not all platforms populate pdata in which case we crash > >the kernel because of NULL pointer dereference. > > Thanks, Mika > > However, this was already reported by Dan Carpenter and I submitted a patch > for that a couple of days ago: "[PATCH 02/10] brcmfmac: Fix possible > dereference of NULL pointer." [1]. > > Regards, > Arend > > [1] > http://mid.gmane.org/1419162233-19492-3-git-send-email-arend@broadcom.com Oh, good. I didn't notice that one. Thanks for fixing it :) BTW, that patch seems to miss brcmf_ops_sdio_resume(), perhaps it is fixed in another patch?