aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/main.c
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2016-12-03 21:10:21 +0800
committerDoug Ledford <dledford@redhat.com>2016-12-14 14:33:48 -0500
commit5b4c9cd7e4790f37b595aeb4bf6fcbf7e3ba9e2c (patch)
treefdb1076e2625d9c2fa50dad12bfcb0e23b116d82 /drivers/infiniband/hw/mlx4/main.c
parentinfiniband: nes: return value of skb_linearize should be handled (diff)
downloadlinux-dev-5b4c9cd7e4790f37b595aeb4bf6fcbf7e3ba9e2c.tar.xz
linux-dev-5b4c9cd7e4790f37b595aeb4bf6fcbf7e3ba9e2c.zip
IB/ocrdma: fix bad initialization
In function ocrdma_mbx_create_ah_tbl(), returns the value of status on errors. However, because status is initialized with 0, 0 will be returned even if on error paths. This patch initialize status with "-ENOMEM". Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188831 Signed-off-by: Pan Bian <bianpan2016@163.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
0 files changed, 0 insertions, 0 deletions