]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Check comm string before print in print_comm()
authorMark Zhang <markz@mellanox.com>
Wed, 11 Sep 2019 08:12:43 +0000 (11:12 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 17 Sep 2019 15:17:38 +0000 (17:17 +0200)
commit4e2d9fc4d8119fdd536df15cc538002a7d7a0e75
tree0a2a1fd8f823d182bd111b184028a34a11d8dd6b
parent2caa8012e844af42d78f4232af5482d8b62b025d
rdma: Check comm string before print in print_comm()

Broken kernels (not-upstream) can provide wrong empty "comm" field.
It causes to segfault while printing in JSON format.

Fixes: 8ecac46a60ff ("rdma: Add QP resource tracking information")
Signed-off-by: Mark Zhang <markz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/res.c