]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix UAR memory leak
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 6 Apr 2017 07:49:12 +0000 (10:49 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 22 Apr 2017 18:52:37 +0000 (21:52 +0300)
commite08a0faa45d06c874e8050079e84e80f455ec643
treec99404ea27b4f66dae729069f6f4a726e93d57e9
parent8902b79013ac69948090679cdb518cd0b8ffc1b2
net/mlx5: Fix UAR memory leak

When UAR is released, we deallocate the device resource, but
don't unmmap the UAR mapping memory.
Fix the leak by unmapping this memory.

Fixes: 8ba998e73b97a ('net/mlx5: Introduce blue flame register allocator)
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/uar.c