]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: Initialize the 'lif->dbid_inuse' bitmap
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Dec 2021 14:06:17 +0000 (15:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Dec 2021 00:07:35 +0000 (16:07 -0800)
commit613a52b4ad62add5e1eeb0ad4a2de8e9068fbbbc
treefa0c0aaa014392448ee955be79c64a1e39bec6e8
parentea1589af36f73b03f71af5be33d1db24e7903179
ionic: Initialize the 'lif->dbid_inuse' bitmap

When allocated, this bitmap is not initialized. Only the first bit is set a
few lines below.

Use bitmap_zalloc() to make sure that it is cleared before being used.

Fixes: 122732cbbff0 ("ionic: Add interrupts and doorbells")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Link: https://lore.kernel.org/r/6a478eae0b5e6c63774e1f0ddb1a3f8c38fa8ade.1640527506.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c