]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Initialise MCDI buffers to 0 on declaration.
authorJon Cooper <jcooper@solarflare.com>
Wed, 20 May 2015 10:10:41 +0000 (11:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 22:43:53 +0000 (18:43 -0400)
commitb42f8d6bd1ae75ccf49c1dd5a2e4722f72dfa5d1
tree2debcc7794be8ac8235692aa0746c69e73816782
parentf4fa8f9ae3a4eedbc0877ef4c11619f9f85b908b
sfc: Initialise MCDI buffers to 0 on declaration.

In order to avoid MC bugs the flags field needs to be set to 0.
Instead of explicitly clearing out the flags individually, a
better way to do this is to memset the MCDI_BUF to 0.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.h
drivers/net/ethernet/sfc/ptp.c