]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mISDN: hfcpci: Test both vendor & device ID for Digium HFC4S
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 18 Mar 2019 13:51:06 +0000 (08:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:25:08 +0000 (06:25 +0200)
commit7ca0727ee469f2954b689d5bdbe25fea029401bc
tree12cf928f37ab819c82e2447ac1afc70fe2876d11
parent111fdc6e948b36115e29cf3b1981058d033ffd54
mISDN: hfcpci: Test both vendor & device ID for Digium HFC4S

[ Upstream commit fae846e2b7124d4b076ef17791c73addf3b26350 ]

The device ID alone does not uniquely identify a device.  Test both the
vendor and device ID to make sure we don't mistakenly think some other
vendor's 0xB410 device is a Digium HFC4S.  Also, instead of the bare hex
ID, use the same constant (PCI_DEVICE_ID_DIGIUM_HFC4S) used in the device
ID table.

No functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/isdn/hardware/mISDN/hfcmulti.c