Files
linux/drivers
Colin Ian King 7648398017 octeontx2-af: Fix access of iter->entry after iter object has been kfree'd
The call to pc_delete_flow can kfree the iter object, so the following
dev_err message that accesses iter->entry can accessmemory that has
just been kfree'd.  Fix this by adding a temporary variable 'entry'
that has a copy of iter->entry and also use this when indexing into
the array mcam->entry2target_pffunc[]. Also print the unsigned value
using the %u format specifier rather than %d.

Addresses-Coverity: ("Read from pointer after free")
Fixes: 55307fcb92 ("octeontx2-af: Add mbox messages to install and delete MCAM rules")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20201118143803.463297-1-colin.king@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-20 11:07:57 -08:00
..
2020-11-19 14:03:52 +01:00
2020-11-12 13:59:04 -07:00
2020-10-28 19:12:03 +01:00
2020-11-11 09:53:09 +01:00
2020-09-28 12:17:36 +02:00
2020-11-18 17:42:13 -08:00
2020-09-25 06:12:15 +02:00
2020-10-27 19:23:04 +01:00
2020-11-09 08:17:46 +01:00