net/mlx5_core: Avoid copying outbox in aysnc command completion
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 2 Apr 2015 14:07:26 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:33:41 +0000 (16:33 -0400)
commit05e4ecd1dc8b085a9010f20dcb5409b25488480a
tree68b56742635a9b56f836a1b19c2979b2c858eb5a
parent64599cca51de08cef94bc13a0f98351e5bb01f41
net/mlx5_core: Avoid copying outbox in aysnc command completion

Avoid copying to the output buffer in cmd_exec since this is done after the
command is completed. Failure to do this may cause cases where the callback
handler is called before the copy done by cmd_exec which then overwrites it.

Reported-by: Tamer Hleihel <tamerh@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c