net: atlantic: make hw_get_regs optional
authorMark Starovoytov <mstarovoitov@marvell.com>
Thu, 30 Apr 2020 08:04:34 +0000 (11:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 22:37:58 +0000 (15:37 -0700)
commitd0f23741c202c685447050713907f3be39a985ee
treeee4a1352caaec18a37e1a0fe1eaecfd29da0ac4a
parent36e90a5297ea02c67c0f17d8b39eb9ceb93dd6f0
net: atlantic: make hw_get_regs optional

This patch fixes potential crash in case if hw_get_regs is NULL.

Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c