OSDN Git Service

net/smc: use an array to check fields in system EID
authorKarsten Graul <kgraul@linux.ibm.com>
Fri, 2 Oct 2020 15:09:27 +0000 (17:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 00:04:48 +0000 (17:04 -0700)
commitfd6ebb6fb2cf30eb03fbb8949e367832cbb82fec
treef7ee1d1d9e377c2da3770e58c69ec63631a54a68
parent839d696ffb2714c06da7f55f622d0ac8286524b5
net/smc: use an array to check fields in system EID

The check for old hardware versions that did not have SMCDv2 support was
using suspicious pointer magic. Address the fields using an array.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ism.c