Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3485507rwb; Mon, 16 Jan 2023 08:36:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXv4u4qiAbdmkAVExIWkZ/euq32HAsEJdnjeVydPVmx6iT/353NgqfHjsZ01VsISTTKH4twx X-Received: by 2002:a05:6a21:e388:b0:b6:acf5:d32 with SMTP id cc8-20020a056a21e38800b000b6acf50d32mr15620039pzc.20.1673886968072; Mon, 16 Jan 2023 08:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673886968; cv=none; d=google.com; s=arc-20160816; b=xxMh0vXyCj7bUnArwp94oFREGpD/xes8KGrVrKe7n5o4tWFvq8BxWNCQHy8ldbiu4g Jmh4GUgSG2M1jumbastBfJGPbQoBhBsnUrIX7UEPl5hASk8Bf9z0TFSh8f7OkHicQdoL ejPQyTq6ZHBSmV+BP4eA3m46G+l4nN7wRrD/KOj7zgykGAfStEzHuZfo9R0ppeUQSpIS W7cDS5kFupS7776pPTMbnJVW/hbhUhllhIVpiHVxM4TQpePIvR4FYJoSBwMXPRRnyykV 5yzIsPIypRLZ8Jm+vsbbl/gBILhE2IgQx7VCINJN+e8egTIiwVgRr9meTq2jswE8lMEt prGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=sC5A160BgpyY+S68qQSxo2IFjbIm+dMEcBFgegLJwVQ=; b=aIlSIvvl2F9ETrZIoqSACBHzEvP3c01+eH7dchWpeDmLT6MR7sT3j4iQ6h+u9Pwn+c qMXeTd9xW+FFDUmR9M33phbfNL8DG3r0hcbkVt/69xSfNsW3VTCa7jbov+0CFnvn/yQy u8CDViEXgQAsSpcGqK37Uhep7NURzDQMIy1gxo0mfNBl7o21ElOqkmTd4ziVcRO0Z1HF MZlpn4v4myGc7mDuDGQlSTM3uj7SkE7pddniUeAXUItwTr5rvm5v9nqMymDfyxxvyMRa OrJK2PF1mTxn+uwEtKPSFcKIf65YFENrmuj9fT+z5k30hMzxKYWOzwfGHwO4gvLaiqnC nbvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FGvRj3F+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a634754000000b0049a00571369si30712761pgk.213.2023.01.16.08.36.00; Mon, 16 Jan 2023 08:36:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FGvRj3F+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233400AbjAPQft (ORCPT + 63 others); Mon, 16 Jan 2023 11:35:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233374AbjAPQfK (ORCPT ); Mon, 16 Jan 2023 11:35:10 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F60A2A99F for ; Mon, 16 Jan 2023 08:22:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2D03FB81063 for ; Mon, 16 Jan 2023 16:22:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24F85C433EF; Mon, 16 Jan 2023 16:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673886166; bh=EkrK/AeJb1OAG5NzGS7loqPQvsbtyprsYs6TU2koRm8=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=FGvRj3F+Y50OY7hHIOY9kvKhaLH6TwAfKVKT5iTQd2jm/VwwTSE3Y1PBQVYhA8EBA V4x6A9JR6oMBzsniWvtAvsORspQmvHOFjFjuxDIt49w8GHL9dinkJdQkRED47WEqYE SYK2NPfqa4fHei1SoK/mw9Kwz9hBmDvGsCh7Zk40rfysVHgSEzF3b+dqB4uhWE61jG 7kyRe6mD6GrqCn9bG3zGps7LjAzB8fwhX3Q+IFPy0M/4z9zWvt7kK+qGUj9gJdCpng NFWLjfRKCzdz7HalqjCjpadHtMH6EXIg3LDm+bsc3h6eo4KgKSYpZcrxgZBQ70U2bx ztEcHtk+7lYcw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: wifi: orinoco: check return value of hermes_write_wordrec() From: Kalle Valo In-Reply-To: <20221227133306.201356-1-aleksei.kodanev@bell-sw.com> References: <20221227133306.201356-1-aleksei.kodanev@bell-sw.com> To: Alexey Kodanev Cc: linux-wireless@vger.kernel.org, Alexey Kodanev User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <167388616414.5321.302246308386486154.kvalo@kernel.org> Date: Mon, 16 Jan 2023 16:22:45 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Alexey Kodanev wrote: > There is currently no return check for writing an authentication > type (HERMES_AUTH_SHARED_KEY or HERMES_AUTH_OPEN). It looks like > it was accidentally skipped. > > This patch adds a return check similar to the other checks in > __orinoco_hw_setup_enc() for hermes_write_wordrec(). > > Detected using the static analysis tool - Svace. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Alexey Kodanev Patch applied to wireless-next.git, thanks. 1e346cbb096a wifi: orinoco: check return value of hermes_write_wordrec() -- https://patchwork.kernel.org/project/linux-wireless/patch/20221227133306.201356-1-aleksei.kodanev@bell-sw.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches