From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934052AbdCVJE0 (ORCPT ); Wed, 22 Mar 2017 05:04:26 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49322 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933954AbdCVJER (ORCPT ); Wed, 22 Mar 2017 05:04:17 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6F749609FF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [2/2] zd1211rw: fix NULL-deref at probe From: Kalle Valo In-Reply-To: <20170313124421.28587-2-johan@kernel.org> References: <20170313124421.28587-2-johan@kernel.org> To: Johan Hovold Cc: QCA ath9k Development , Daniel Drake , Ulrich Kunitz , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20170322090415.BE414609FF@smtp.codeaurora.org> Date: Wed, 22 Mar 2017 09:04:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: a1030e92c150 ("[PATCH] zd1211rw: Convert installer CDROM device into WLAN device") > Cc: Daniel Drake > Signed-off-by: Johan Hovold Patch applied to wireless-drivers-next.git, thanks. ca260ece6a57 zd1211rw: fix NULL-deref at probe -- https://patchwork.kernel.org/patch/9620721/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches