commit | 72f36be06138bdc11bdbe1f04e4a3e2637ea438d | [log] [tgz] |
---|---|---|
author | Eran Ben Elisha <eranbe@mellanox.com> | Mon Nov 20 09:58:01 2017 +0200 |
committer | Saeed Mahameed <saeedm@mellanox.com> | Fri Jan 12 02:01:47 2018 +0200 |
tree | ab975a43730639e212df98c5dccd97752c0de441 | |
parent | b6908c296021a99ba2a83a4b4703eb9e6365e5dc [diff] |
net/mlx5: Fix mlx5_get_uars_page to return error code Change mlx5_get_uars_page to return ERR_PTR in case of allocation failure. Change all callers accordingly to check the IS_ERR(ptr) instead of NULL. Fixes: 59211bd3b632 ("net/mlx5: Split the load/unload flow into hardware and software flows") Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>