]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: use __aligned_u64 for 64-bit smc_diag fields
authorEugene Syromiatnikov <esyr@redhat.com>
Sun, 7 Oct 2018 14:57:31 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 04:06:28 +0000 (21:06 -0700)
commit04684c2cb4d02353ee0b6569d6fea132610b9b73
tree3abe4d2d2008c8fe8fade2a0209900f1121351d8
parent08347c1831e497ab5133253b775fd611a9e92745
net/smc: use __aligned_u64 for 64-bit smc_diag fields

Commit 7a912d5e0e93 ("net/smc: add SMC-D diag support") introduced
new UAPI-exposed structure, struct smcd_diag_dmbinfo.  However,
it's not usable by compat binaries, as it has different layout there.
Probably, the most straightforward fix that will avoid similar issues
in the future is to use __aligned_u64 for 64-bit fields.

Fixes: 7a912d5e0e93 ("net/smc: add SMC-D diag support")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/smc_diag.h