Tag: 71b578452ec6b2e8a470e3dae89055cd1068a9f0

i2c-smbus: Convert kzalloc to devm_kzalloc

Author: Julia Lawall <Julia.Lawall@lip6.fr> Converting kzalloc to devm_kzalloc simplifies the code and ensures that the result, alert, is freed after the irq allocated by the subsequent devm_request_irq. This in turn ensures that when an interrupt can be triggered, the alert structure is still available. The problem of a free after a devm_request_irq was found using …

Continue reading