From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751945AbdF1QWR (ORCPT ); Wed, 28 Jun 2017 12:22:17 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40694 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751579AbdF1QWI (ORCPT ); Wed, 28 Jun 2017 12:22:08 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D98256025C 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 From: Kalle Valo To: Colin King Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rsi: add in missing RSI_FSM_STATES into array fsm_state References: <20170622165804.24379-1-colin.king@canonical.com> Date: Wed, 28 Jun 2017 19:22:02 +0300 In-Reply-To: <20170622165804.24379-1-colin.king@canonical.com> (Colin King's message of "Thu, 22 Jun 2017 17:58:04 +0100") Message-ID: <87vangqdzp.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Colin King writes: > From: Colin Ian King > > Two recent commits added new RSI_FSM_STATES (namely FSM_FW_NOT_LOADED > and FSM_COMMON_DEV_PARAMS_SENT) and the corresponding table fsm_state > was not updated to match. This can lead to an array overrun when > accessing the latter two states in fsm_state. Fix this by adding in > the missing states. > > Detected by CoverityScan, CID#1398379 ("Illegal address computation") > > Fixes: 9920322ccd8e04 ("rsi: add tx frame for common device configuration") > Fixes: 015e367494c1d5 ("rsi: Register interrupt handler before firmware load") This is very much nitpicking, no need to resend because of this, but the preferred format is to to use 12 chars for the commit id: Fixes: 9920322ccd8e ("rsi: add tx frame for common device configuration") Fixes: 015e367494c1 ("rsi: Register interrupt handler before firmware load") Documentation/process/submitting-patches.rst contains a nice tip how you can get that automatically with git: [core] abbrev = 12 [pretty] fixes = Fixes: %h (\"%s\") -- Kalle Valo