]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
qed: Fix the doorbell address sanity check
authorDenis Bolotin <dbolotin@marvell.com>
Sun, 14 Apr 2019 14:23:06 +0000 (17:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:40:18 +0000 (19:40 +0200)
commitdeb2cc51dd5221abfe2f320625d3a388a6bf2a9f
tree35164b1e1d1d73a5a2c1ccb179b04797c8dd0ae8
parent2de1573a5ed9640c7ac95e5f3d0c4dc7c3e3e31d
qed: Fix the doorbell address sanity check

[ Upstream commit b61b04ad81d5f975349d66abbecabf96ba211140 ]

Fix the condition which verifies that doorbell address is inside the
doorbell bar by checking that the end of the address is within range
as well.

Signed-off-by: Denis Bolotin <dbolotin@marvell.com>
Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_dev.c