net/smc: fix structure size
authorKarsten Graul <kgraul@linux.ibm.com>
Thu, 26 Apr 2018 15:18:20 +0000 (17:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 18:02:51 +0000 (14:02 -0400)
commit3382576106014bf865d341efab3d94fb28d1fc63
treead9626b964b47c610aba1f2b99da9af08be5a1f3
parent51dce24bcdbdc493a87a17bcaf898b1f1d2fa600
net/smc: fix structure size

The struct smc_cdc_msg must be defined as packed so the
size is 44 bytes.
And change the structure size check so sizeof is checked.

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