diff options
author | Leon Romanovsky | 2017-04-15 17:47:25 +0200 |
---|---|---|
committer | Doug Ledford | 2017-04-21 18:29:31 +0200 |
commit | a43402af1e34654ec3b693239330ff8cf6feaaae (patch) | |
tree | 67ffd3e756db8f0519464b85952f3d3cc69a902c /drivers/hwmon/emc6w201.c | |
parent | IB/mlx5: Add drop flow steering rule support (diff) | |
download | kernel-qcow2-linux-a43402af1e34654ec3b693239330ff8cf6feaaae.tar.gz kernel-qcow2-linux-a43402af1e34654ec3b693239330ff8cf6feaaae.tar.xz kernel-qcow2-linux-a43402af1e34654ec3b693239330ff8cf6feaaae.zip |
IB/mthca: Check validity of output parameter pointer
The mthca driver didn't check supplied pointer to functions
mthca_cmd_poll() and mthca_cmd_wait(). This caused to the following
smatch errors:
drivers/infiniband/hw/mthca/mthca_cmd.c:371 mthca_cmd_poll() error: we previously assumed 'out_param' could be null (see line 353)
drivers/infiniband/hw/mthca/mthca_cmd.c:454 mthca_cmd_wait() error: we previously assumed 'out_param' could be null (see line 432)
In reality all callers of these functions are setting out_is_imm
flag are providing pointer too. However it is better to check
again to remove smatch errors to achieve warning free subsystem.
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/hwmon/emc6w201.c')
0 files changed, 0 insertions, 0 deletions