]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bc174c3541f1ef8b54f4864c52305d0946decc9
treef7ee1d1d9e377c2da3770e58c69ec63631a54a68
parentbbe0a6e8c8e43e7bb7df021f992f639c39149b65
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