[PATCH] irqbypass: add missing module_put() in irq_bypass_register_*()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

It seems that the irq_bypass_register_*() functions are missing a call to module_put() at the end.
The error paths in these functions and the lock / unlock pattern in the respective irq_bypass_unregister_*() functions seem to confirm this.

As I am not very familiar to the code, is there any reason to omit module_put() that I am missing?
If so, maybe some comments would be helpful, explaining why, as currently it is not obvious.

I send a patch which adds the module_put() calls in case they are actually missing.

Thanks

Emmanouil Maroudas (1):
  irqbypass: add missing module_put() in irq_bypass_register_*()

 virt/lib/irqbypass.c | 4 ++++
 1 file changed, 4 insertions(+)

--
2.7.4



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux