qed: Fix the doorbell address sanity check
authorDenis Bolotin <dbolotin@marvell.com>
Sun, 14 Apr 2019 14:23:06 +0000 (17:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2019 20:59:49 +0000 (13:59 -0700)
commitb61b04ad81d5f975349d66abbecabf96ba211140
treecf4c548105cb607f9a1fd3ea7e351b00ae30fa8d
parent9ac6bb1414ac0d45fe9cefbd1f5b06f0e1a3c98a
qed: Fix the doorbell address sanity check

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>
drivers/net/ethernet/qlogic/qed/qed_dev.c