]> 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)
commit1d7f8e1fb84d485726ddb10d590780ed0952a1c4
tree14db6d68fc255eea9d43da8eed9d8f543da8299f
parent74d3a9f812adca9617b35ed20aae6a3723bc0eec
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: ed79cc8a81ca ("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