]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: check for failed allocation lmac->dmacs
authorColin Ian King <colin.king@canonical.com>
Mon, 6 Aug 2018 16:50:45 +0000 (17:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 19:38:13 +0000 (12:38 -0700)
commit9e063ce0b8f5ecb159c597898771b082628843ac
treea26541f68ed60e03f3b5c6b2ce8886ce2f1e1e9a
parent57dd16eb5d503a21cbcc99fdbcf0a0602ab83772
net: thunderx: check for failed allocation lmac->dmacs

The allocation of lmac->dmacs is not being checked for allocation
failure. Add the check.

Fixes: e032fc123c4d ("net: thunderx: add MAC address filter tracking for LMAC")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c