]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Check capability flag while freeing ipolicer memory
authorGeetha sowjanya <gakula@marvell.com>
Sun, 22 Aug 2021 12:02:24 +0000 (17:32 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Aug 2021 20:38:15 +0000 (21:38 +0100)
commit88525a4786bff7021f99bf10a539e03a8bf80373
tree7171d8e69fc8fca4ce7a4467ba060ec198ed8093
parentaa1d0b45bcc5eebe898de00590568d339ca79a6c
octeontx2-af: Check capability flag while freeing ipolicer memory

Bandwidth profiles (ipolicer structure)is implemented only on CN10K
platform. But current code try to free the ipolicer memory without
checking the capibility flag leading to driver crash on OCTEONTX2
platform. This patch fixes the issue by add capability flag check.

Fixes: 2f9636dde86b3 ("octeontx2-af: cn10k: Bandwidth profiles config support")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c