Skip to content

Commit

Permalink
cxgb4: fix wrong shift.
Browse files Browse the repository at this point in the history
[ Upstream commit 39eb028 ]

While fixing coverity warning, commit dd2c796 introduced typo in
shift value. Fix that.

Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Fixes: dd2c796 ("cxgb4: Fix unintentional sign extension issues")
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Pavel Machek authored and gregkh committed Jun 23, 2021
1 parent b4f7a9f commit 6b3496e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
Expand Up @@ -198,7 +198,7 @@ static void set_nat_params(struct adapter *adap, struct filter_entry *f,
WORD_MASK, f->fs.nat_lip[3] |
f->fs.nat_lip[2] << 8 |
f->fs.nat_lip[1] << 16 |
(u64)f->fs.nat_lip[0] << 25, 1);
(u64)f->fs.nat_lip[0] << 24, 1);
}
}

Expand Down

0 comments on commit 6b3496e

Please sign in to comment.