IB/core: When marshaling uverbs path, clear unused fields
commita59c5850f09b4c2d6ad2fc47e5e1be8d654529d6
authorMatan Barak <matanb@mellanox.com>
Tue, 2 Sep 2014 12:32:34 +0000 (2 15:32 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 22 Sep 2014 16:46:52 +0000 (22 09:46 -0700)
tree14db6d68fc255eea9d43da8eed9d8f543da8299f
parent4bf9715f184969dc703bde7be94919995024a6a9
IB/core: When marshaling uverbs path, clear unused fields

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

Fixes: dd5f03beb4f7 ("IB/core: Ethernet L2 attributes in verbs/cm structures")
Reported-by: Aleksey Senin <alekseys@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/uverbs_marshall.c