Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2143053iof; Tue, 7 Jun 2022 21:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsHT9PIjwEYo40DSKAReyTlaHdxfgfCudAPL59HJ3Y/bTRQCIi9TD4u7ZidQI6GqqSOcAy X-Received: by 2002:a17:90b:3ec2:b0:1e8:9ca4:8d55 with SMTP id rm2-20020a17090b3ec200b001e89ca48d55mr8660499pjb.123.1654661477317; Tue, 07 Jun 2022 21:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654661477; cv=none; d=google.com; s=arc-20160816; b=nNqzR1O1tUgbEttiE3q/jEFfgdR9NU+RILBlRWcwNu0oBhR/gNV53IMJqTpihXRnsS 2F6axf6H4cXiIAolv8iSNXMniseDVDCWBimc8u5M0Y9EDRKBAuLqDuVYvG8Onyl2YApP SiYoGBcDVKlpVaDWi0/1k6tK841syarR85/26jgRpAwhkFmO/O2Wevulo8F3Q2KTGLa1 8FPbYO0WeFI5HVBSLJad4h+Q3uoezIYCMLcD62HxvxesjtvB9Vp8AMnk7KU82QUiHbap QYecLLhjx3IOWYHAzL+AyuMvr6/YmgTYL1DsfsUWpSuUqI+qFwD2rBRsMEN1LHJLdlUb c0XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sUQDCr8GMGnpNLOG+ooGHI8ZiHNCzJqHr+5HmPIhMV4=; b=CyahyAnQyfGBM75K4gv8XP7OhLbYSo+6tb2kmZe207Clxs64Zvdehgsr0VlpbnfsDM NRPtUDB0Xq1PUXVKI34nc+tCN1O4OZip0JcP9LE/y3eDt9BQueE+GgSfeCe4xkE628qt rfLgZVGyK19Nk9IyVAScfc0bMfEEwS7n3zeu9W/vDAwRrNnA5hMjssPS84cRN+fHsTG9 zA+OSdkDbKqwMkFJnm72ZEDKzdON+8I8yzfGmrNy8QjRUmsC5cYcgf06x6/12dx0aiDp 3BLvuUl8DoqRFtoGr9a8fC5rgMLOBt8+pWHPZt7kFA+CZ2GVKw5ONz3DmoxnJIYEsGQP 7lUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FleGU3Xw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s24-20020a17090aa11800b001e66ea39810si12977733pjp.37.2022.06.07.21.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:11:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FleGU3Xw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A0041CD340; Tue, 7 Jun 2022 20:42:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378846AbiFGVFA (ORCPT + 99 others); Tue, 7 Jun 2022 17:05:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358163AbiFGUDO (ORCPT ); Tue, 7 Jun 2022 16:03:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 567581C206F; Tue, 7 Jun 2022 11:25:39 -0700 (PDT) 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 C464DB82368; Tue, 7 Jun 2022 18:25:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CAC0C385A5; Tue, 7 Jun 2022 18:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654626337; bh=n8/GnrtqBN+ElbM5hRTEvorINHVSuxJ+d0Ck/aQi8+E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FleGU3XwSU6Wnrc7mdAloxlOw5GR+nc7nbz2XYaMnzTSptmrCxFbNYGe9do0nrpJC t/u/e6cczJ8pw85M3NdjuXAR6wcEhLbLNPzhd/twLebK/O616KctGuc5QK8wArq3XL 0dSpTwWEPztBTDLaz/J8mb8DoHJbtG2ENEs67ZWg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mike Christie , Lee Duncan , Dan Carpenter , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.17 301/772] scsi: iscsi: Fix harmless double shift bug Date: Tue, 7 Jun 2022 18:58:13 +0200 Message-Id: <20220607164957.894310666@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164948.980838585@linuxfoundation.org> References: <20220607164948.980838585@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 565138ac5f8a5330669a20e5f94759764e9165ec ] These flags are supposed to be bit numbers. Right now they cause a double shift bug where we use BIT(BIT(2)) instead of BIT(2). Fortunately, the bit numbers are small and it's done consistently so it does not cause an issue at run time. Link: https://lore.kernel.org/r/YmFyWHf8nrrx+SHa@kili Fixes: 5bd856256f8c ("scsi: iscsi: Merge suspend fields") Reviewed-by: Mike Christie Reviewed-by: Lee Duncan Signed-off-by: Dan Carpenter Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- include/scsi/libiscsi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index d1e282f0d6f1..6ad01d7de480 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h @@ -53,9 +53,9 @@ enum { #define ISID_SIZE 6 /* Connection flags */ -#define ISCSI_CONN_FLAG_SUSPEND_TX BIT(0) -#define ISCSI_CONN_FLAG_SUSPEND_RX BIT(1) -#define ISCSI_CONN_FLAG_BOUND BIT(2) +#define ISCSI_CONN_FLAG_SUSPEND_TX 0 +#define ISCSI_CONN_FLAG_SUSPEND_RX 1 +#define ISCSI_CONN_FLAG_BOUND 2 #define ISCSI_ITT_MASK 0x1fff #define ISCSI_TOTAL_CMDS_MAX 4096 -- 2.35.1