]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: When marshaling uverbs path, clear unused fields
authorMatan Barak <matanb@mellanox.com>
Tue, 2 Sep 2014 12:32:34 +0000 (15:32 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 22 Sep 2014 16:46:52 +0000 (09:46 -0700)
commit3db6908bdf4da71966b5e81be2266102361f2042
tree14db6d68fc255eea9d43da8eed9d8f543da8299f
parentd332559a5c06245a236a5b493f153a5f5dd9a29c
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: 11f4366902bc ("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