]> 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)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 24 Mar 2015 01:02:46 +0000 (21:02 -0400)
commit6ff59abff69c457b6dc74b134f015d10259b7063
treee45e9b01e0ce50a6828e3ccd54d2cabcaa3bab17
parentf90ead8d0f136b36a8527b1259e984ac58cfe4da
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: Sasha Levin <sasha.levin@oracle.com>
drivers/infiniband/core/ucma.c