commit | f614fc15ae39ceb531586e3969f2b99fd23182a0 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Jan 12 11:56:58 2015 +0300 |
committer | Roland Dreier <roland@purestorage.com> | Tue Feb 17 10:22:59 2015 -0800 |
tree | e16ee8b0bca811affd161434c0d3b19d34064f70 | |
parent | bfa76d49576599a4b9f9b7a71f23d73d6dcff735 [diff] |
IB/mlx5: Fix error code in get_port_caps() The current code returns success when kmalloc() fails. It should return an error code, -ENOMEM. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Roland Dreier <roland@purestorage.com>