Skip to content
Commit 965f9b8c authored by Dell Jin's avatar Dell Jin Committed by David S. Miller
Browse files

net: ethernet: adi: adin1110: Fix uninitialized variable

The spi_transfer struct has to have all it's fields initialized to 0 in
this case, since not all of them are set before starting the transfer.
Otherwise, spi_sync_transfer() will sometimes return an error.

Fixes: a526a3cc

 ("net: ethernet: adi: adin1110: Fix SPI transfers")
Signed-off-by: default avatarDell Jin <dell.jin.code@outlook.com>
Signed-off-by: default avatarCiprian Regus <ciprian.regus@analog.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 95201f36
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment