]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ionic: fix fw_status read
authorShannon Nelson <snelson@pensando.io>
Wed, 19 Feb 2020 22:59:42 +0000 (14:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:45:03 +0000 (16:45 +0100)
commit62fb796c55cc7966fc0b5459cd2896c804369df9
treeb42e10c6bb74a4384f7e2f3c97e7a0ed649834a4
parentfa07a0ad5f5f750771931a668f8fdc8a620aff96
ionic: fix fw_status read

[ Upstream commit 68b759a75d6257759d1e37ff13f2d0659baf1112 ]

The fw_status field is only 8 bits, so fix the read.  Also,
we only want to look at the one status bit, to allow for future
use of the other bits, and watch for a bad PCI read.

Fixes: 97ca486592c0 ("ionic: add heartbeat check")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/pensando/ionic/ionic_dev.c
drivers/net/ethernet/pensando/ionic/ionic_if.h