]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix the panic caused by non smac rewrite
authorRaju Rangoju <rajur@chelsio.com>
Wed, 18 Nov 2020 14:32:13 +0000 (20:02 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 19:03:37 +0000 (11:03 -0800)
commitfb4e61f9a52b27eae2b826c89516b703b0990620
treeb8b3cd40ea24ac5de106a5eee136a8b12ebd21c5
parentbb1f94c44cebeba943b27e30c46a02be108018f6
cxgb4: fix the panic caused by non smac rewrite

SMT entry is allocated only when loopback Source MAC
rewriting is requested. Accessing SMT entry for non
smac rewrite cases results in kernel panic.

Fix the panic caused by non smac rewrite

Fixes: 6d7e87d769b6 ("cxgb4: set up filter action after rewrites")
Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Link: https://lore.kernel.org/r/20201118143213.13319-1-rajur@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c