]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/core: When marshaling ucma path from user-space, clear unused fields
authorIlya Nelkenbaum <ilyan@mellanox.com>
Thu, 5 Feb 2015 11:53:48 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 12:31:32 +0000 (13:31 +0100)
commitf96bc2a82461e732157402aaa26b9c31bfdbdea9
tree214c90fc80e7feb2c9842acd1ca40d7140e6355a
parent5ed802de91567664a3f6bc37b8b03dfad8ad88ea
IB/core: When marshaling ucma path from user-space, clear unused fields

commit c2be9dc0e0fa59cc43c2c7084fc42b430809a0fe upstream.

When marshaling a user path to the kernel struct ib_sa_path, we need
to zero smac and dmac and set the vlan id to the "no vlan" value.

This is to ensure that Ethernet attributes are not used with
InfiniBand QPs.

Fixes: dd5f03beb4f7 ("IB/core: Ethernet L2 attributes in verbs/cm structures")
Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/ucma.c