diff options
| author | weiyongjun (A) <[email protected]> | 2018-06-07 01:47:41 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-06-11 17:02:27 +0000 |
| commit | e31abf76f4d4d3202ca16b9668b11178df23d473 (patch) | |
| tree | 85d63b0103e44a17eae35f2d06c331d9b8d113c6 /drivers/i2c/algos/i2c-algo-bit.c | |
| parent | IB/mlx5: Fix memory leak in mlx5_ib_create_flow (diff) | |
| download | kernel-e31abf76f4d4d3202ca16b9668b11178df23d473.tar.gz kernel-e31abf76f4d4d3202ca16b9668b11178df23d473.zip | |
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 <[email protected]>
Acked-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions
