]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Fix irq free in rvu teardown
authorGeetha sowjanya <gakula@marvell.com>
Thu, 18 Mar 2021 14:15:46 +0000 (19:45 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 21:12:42 +0000 (14:12 -0700)
commit189012f8a965cd41ab68dfd7a6792285fb41a9e7
treec1a611856c596595ffa5261275c545cd92b2181b
parent94a8db80efdc524b80b528f47016f6f6bdb4571d
octeontx2-af: Fix irq free in rvu teardown

Current devlink code try to free already freed irqs as the
irq_allocate flag is not cleared after free leading to kernel
crash while removing rvu driver. The patch fixes the irq free
sequence and clears the irq_allocate flag on free.

Fixes: b426e277ad63 ("octeontx2-af: Add mailbox IRQ and msg handlers")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c