From patchwork Wed Mar 31 21:14:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 413355 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 028F0C433B4 for ; Wed, 31 Mar 2021 22:15:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBC8661090 for ; Wed, 31 Mar 2021 22:15:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232549AbhCaWOo (ORCPT ); Wed, 31 Mar 2021 18:14:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:47772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232927AbhCaWOa (ORCPT ); Wed, 31 Mar 2021 18:14:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A6AA61078; Wed, 31 Mar 2021 22:14:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617228870; bh=mrLBos/CAgdGWR21qY3zs3GniHUtc419xSmwc+HgHSU=; h=Date:From:To:Cc:Subject:From; b=g0Y5yKP+43NhiVe22Sk7oO18fMgUonL6du/Y8ISEllMGv7HpegYnUG3D+xDS4mIe4 yiVRNSy/yORHoCIPcWPtt6G4CxgguVd+c0kjpKltq7YMLjSkeDIOi3pzRbc0BFzU/f TK8a8sPsBU5SOgXFrLNjC04arIch7i/8GlSiBHPywnLUbwcBH6FsmLQrhiJ7lD9j0E 7gfmamdV321ljtKmISJ0UMhqIlm++X5dZ3HkBKpvJ3u0Y0c3Vm6ijVswyj0iy67RmY bwqTq8wCvshCmEmYmpODsnMQHX9JiFuLt+cZWgPiOneZIGdrOqJIkmy79U7YhKOdwq vzyrXRVSZ+B7Q== Date: Wed, 31 Mar 2021 16:14:32 -0500 From: "Gustavo A. R. Silva" To: linux-kernel@vger.kernel.org Cc: Kalle Valo , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 0/2][next] wl3501_cs: Fix out-of-bounds warnings Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fix the a couple of out-of-bounds warnings by making the code a bit more structured. This helps with the ongoing efforts to enable -Warray-bounds and avoid confusing the compiler. Link: https://github.com/KSPP/linux/issues/109 Gustavo A. R. Silva (2): wl3501_cs: Fix out-of-bounds warning in wl3501_send_pkt wl3501_cs: Fix out-of-bounds warning in wl3501_mgmt_join drivers/net/wireless/wl3501.h | 28 ++++++++++++++++------------ drivers/net/wireless/wl3501_cs.c | 6 +++--- 2 files changed, 19 insertions(+), 15 deletions(-)