]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: use a constant for control message length
authorKarsten Graul <kgraul@linux.vnet.ibm.com>
Wed, 28 Feb 2018 11:44:07 +0000 (12:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 17:30:25 +0000 (12:30 -0500)
commit008b3643b16c899d5c1bc61a7cfc2a027327e85e
tree8bdf681a8a44dfcd5936d83c6d03c9eeb49b4064
parentdda929638228d52cd4091cb7666067cd60e1f712
net/smc: use a constant for control message length

The sizeof(struct smc_cdc_msg) evaluates to 48 bytes instead of the
required 44 bytes. We need to use the constant value of
SMC_WR_TX_SIZE to set and check the control message length.

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