mlx4: fix possible crash when clearing device statistics
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Mon, 23 Nov 2015 14:44:36 +0000 (15:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 16:39:21 +0000 (17:39 +0100)
commit0f9db82d9f54b6210bbf9d7fad1c144f00e76ccb
treec042e1a62db781778c21d42202ca81f1338cf67c
parent334505bad2bbee80026dff84b6984df8b2780c3d
mlx4: fix possible crash when clearing device statistics

A typo causes TX stats indices to be retrieved from RX queues.

Fixes: 7fae69eeff13 ("mlx4: new poll mode driver")

Reported-by: Nicolas Harnois <nicolas.harnois@6wind.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c