]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx4_core: Fix uninitialized variable compilation warning
authorTariq Toukan <tariqt@mellanox.com>
Thu, 15 Nov 2018 16:05:14 +0000 (18:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:20:26 +0000 (09:20 +0100)
commit6485f65edc7c395c3b6cc9e492913635da31c8ee
tree173e1b87e550143423b3dfb265b3a38209dc8d9f
parentaa4a6a1848a14232414b6ba0bdde9211de593a39
net/mlx4_core: Fix uninitialized variable compilation warning

[ Upstream commit 3ea7e7ea53c9f6ee41cb69a29c375fe9dd9a56a7 ]

Initialize the uid variable to zero to avoid the compilation warning.

Fixes: 7a89399ffad7 ("net/mlx4: Add mlx4_bitmap zone allocator")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx4/alloc.c