Re: [PATCH] drivers/i2c/i2c-smbus.c: convert kzalloc to devm_kzalloc

2012-08-04 Thread Jean Delvare
Hi Julia, On Sat, 4 Aug 2012 19:10:48 +0200, Julia Lawall wrote: > From: Julia Lawall > > 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 interr

[PATCH] drivers/i2c/i2c-smbus.c: convert kzalloc to devm_kzalloc

2012-08-04 Thread Julia Lawall
From: Julia Lawall 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