Skip to contentSkip to conversation

unbalanced local_bh_disable

DISCUSSION Johannes Berg 1 participant 1 message Apr 19, 2017

lore
Share & tools
lore
#0 lore raw

Hi Dan,

I'm seeing things like this with sparse:

drivers/net/wireless/intel/iwlwifi/pcie/rx.c:1746 iwl_pcie_irq_handler() warn: returning with unbalanced local_bh_disable drivers/net/wireless/intel/iwlwifi/pcie/rx.c:1992 iwl_pcie_irq_msix_handler() warn: returning with unbalanced local_bh_disable

but the code looks like

                local_bh_disable();
                iwl_pcie_rx_handle(trans, 0);
                local_bh_enable();

Any idea what's confusing smatch?

Thanks,
johannes