]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
mlx5: fix error return code in mlx5_alloc_uuars()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 29 Jul 2013 23:57:06 +0000 (07:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2013 02:33:45 +0000 (19:33 -0700)
commita661b43fd047ef501da43a19975415f861c7c3db
tree4d71eec9732d16636f5307091a9b7ec188f50617
parent5445eaf309ff2868c77354016505fc7315947a35
mlx5: fix error return code in mlx5_alloc_uuars()

Fix to return -ENOMEM from the ioremap error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/uar.c