From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]:31113 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862AbdDEHfg (ORCPT ); Wed, 5 Apr 2017 03:35:36 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Subject: Re: [1/2] wireless: ath9k_htc: fix NULL-deref at probe From: Kalle Valo In-Reply-To: <20170313124421.28587-1-johan@kernel.org> References: <20170313124421.28587-1-johan@kernel.org> To: Johan Hovold CC: Kalle Valo , QCA ath9k Development , Daniel Drake , Ulrich Kunitz , , , , , Johan Hovold , "Sujith Manoharan" Message-ID: (sfid-20170405_093554_933296_315088C6) Date: Wed, 5 Apr 2017 09:35:23 +0200 Sender: linux-wireless-owner@vger.kernel.org List-ID: Johan Hovold wrote: > Make sure to check the number of endpoints to avoid dereferencing a > NULL-pointer or accessing memory beyond the endpoint array should a > malicious device lack the expected endpoints. > > Fixes: 36bcce430657 ("ath9k_htc: Handle storage devices") > Cc: Sujith Manoharan > Signed-off-by: Johan Hovold Patch applied to ath-next branch of ath.git, thanks. ebeb36670eca ath9k_htc: fix NULL-deref at probe -- https://patchwork.kernel.org/patch/9620723/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches