--- zzzz-none-000/linux-3.10.107/drivers/infiniband/core/uverbs_marshall.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/infiniband/core/uverbs_marshall.c 2021-02-04 17:41:59.000000000 +0000 @@ -140,5 +140,9 @@ dst->packet_life_time = src->packet_life_time; dst->preference = src->preference; dst->packet_life_time_selector = src->packet_life_time_selector; + + memset(dst->dmac, 0, sizeof(dst->dmac)); + dst->net = NULL; + dst->ifindex = 0; } EXPORT_SYMBOL(ib_copy_path_rec_from_user);