From: Colin King <hidden> Date: 2016-12-08 11:18:26
From: Colin Ian King <redacted>
static analysis using cppcheck detected that slots was uninitialized.
Fix this by initializing it to buf_pool->slots - 1
Found using static analysis with CoverityScan, CID #1387620
Fixes: a9380b0f7be818 ("drivers: net: xgene: Add support for Jumbo frame")
Signed-off-by: Colin Ian King <redacted>
---
drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 1 +
1 file changed, 1 insertion(+)
On Thu, Dec 8, 2016 at 3:17 AM, Colin King [off-list ref] wrote:
quoted hunk
From: Colin Ian King <redacted>
static analysis using cppcheck detected that slots was uninitialized.
Fix this by initializing it to buf_pool->slots - 1
Found using static analysis with CoverityScan, CID #1387620
Fixes: a9380b0f7be818 ("drivers: net: xgene: Add support for Jumbo frame")
Signed-off-by: Colin Ian King <redacted>
---
drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 1 +
1 file changed, 1 insertion(+)