]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78eb1766a6a037d6639ac03f3927fdd84a3e34ed
treeee4a1352caaec18a37e1a0fe1eaecfd29da0ac4a
parent1010e551efac88495b5b116826dc5430eae4f0d9
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