summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorweiyongjun (A) <weiyongjun1@huawei.com>2018-06-07 04:47:41 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-06-11 20:02:27 +0300
commite31abf76f4d4d3202ca16b9668b11178df23d473 (patch)
tree85d63b0103e44a17eae35f2d06c331d9b8d113c6 /net/unix/af_unix.c
parent299eafee39a22a9d9a7c19ae592b230bd199f259 (diff)
downloadlinux-e31abf76f4d4d3202ca16b9668b11178df23d473.tar.xz
IB/mlx5: Fix return value check in flow_counters_set_data()
In case of error, the function mlx5_fc_create() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 3b3233fbf02e ("IB/mlx5: Add flow counters binding support") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions