Received: by 10.223.185.116 with SMTP id b49csp5495785wrg; Wed, 7 Mar 2018 12:47:43 -0800 (PST) X-Google-Smtp-Source: AG47ELuhbJfODkQw8+Am4Yh4x5MF8NbB0hQUIHwk9zUU50BsWrAFy9UsM/LuYIVgO63JMMJF5aHy X-Received: by 2002:a17:902:bf44:: with SMTP id u4-v6mr20964273pls.68.1520455663397; Wed, 07 Mar 2018 12:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520455663; cv=none; d=google.com; s=arc-20160816; b=I0nEn3F4eDo+nD0FcpzLZka9ShBYaSMcsH1EDVI4hNr+kygwUlHJvLSb5o8MF9muiG fKaTpnej8SWQz33xoUqJa7y0YyHPiE2BbR6rRD35LQ/YIgulaiLf/Z2WlarmCJ4vd8kk 7qFFhz7Tc2UXwWkuiYi2SoS2iZIPWIikjcelhBKCe0h80YmX7D61ETYDeDlogyq8Skfk cJ81nNpG7OB6waCsNtyTqa+IbfS4DZzl41bakFjxz77p7KgIrR23ACgy+qwtgFTXBroZ I4NuKMsUBC5f86B5hYVqt0D7W0UWMU30QmH1b4EMd0lPeXfY5kQLK0+ny17xJwsEFNDZ KR1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=x4Tv+fDvSaHFf5EGBJxN7d29IX47H/cRcSj9JFUWE6g=; b=qm873hoW2wNUVBkpBr21ZSZAfrIkMWKC4Pt6Ov1lbFPmkdqPf/l/30SvxjsPQwjDyx Fo3OwW81pfETOQt6+Zvf1V60KJHtWhSpt3wPdJxf+Jy+ou8jJ2DlaoJEyeBoUFXLCGfR l0U4uhhPKLXr2ph8Wk8NFh+tRdDs4KEJbZE2d15t7Rg4K7D6VQRXq+PtBxp73P/Db1ez F+EeWWED4V7znFM6WDXSD+X+PD/bS8LiVJX3x9hewUUo5ToZ2Y6naRhj4mJ+d0XPcVm2 X9N4xY/8m4kOFN/nvmJF+sw3QM60gcko3X82oPr+MTi15/InQI0bznI6fc6U/H178EBt K23g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si11848590pgp.254.2018.03.07.12.47.29; Wed, 07 Mar 2018 12:47:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934555AbeCGTlC (ORCPT + 99 others); Wed, 7 Mar 2018 14:41:02 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40860 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754688AbeCGTlB (ORCPT ); Wed, 7 Mar 2018 14:41:01 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 62B9EFBD; Wed, 7 Mar 2018 19:41:00 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wolfram Sang , Tom Lendacky , "David S. Miller" Subject: [PATCH 4.15 043/122] net: amd-xgbe: fix comparison to bitshift when dealing with a mask Date: Wed, 7 Mar 2018 11:37:35 -0800 Message-Id: <20180307191735.248212817@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191729.190879024@linuxfoundation.org> References: <20180307191729.190879024@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wolfram Sang [ Upstream commit a3276892db7a588bedc33168e502572008f714a9 ] Due to a typo, the mask was destroyed by a comparison instead of a bit shift. Signed-off-by: Wolfram Sang Acked-by: Tom Lendacky Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c @@ -595,7 +595,7 @@ isr_done: reissue_mask = 1 << 0; if (!pdata->per_channel_irq) - reissue_mask |= 0xffff < 4; + reissue_mask |= 0xffff << 4; XP_IOWRITE(pdata, XP_INT_REISSUE_EN, reissue_mask); }