Re: [PATCH RESEND] iio: inkern: allocate zeroed memory

2012-09-15 Thread Jonathan Cameron
On 09/14/2012 02:24 AM, Kim, Milo wrote: > Use kzalloc() rather than kmalloc() for initializing the iio_channel > structure. > This patch enables the iio_dev and iio_chan_spec are set to NULL. > This may prevent the page fault problem because the pointer of iio_chan_spec > is initialized as NU

[PATCH RESEND] iio: inkern: allocate zeroed memory

2012-09-13 Thread Kim, Milo
Use kzalloc() rather than kmalloc() for initializing the iio_channel structure. This patch enables the iio_dev and iio_chan_spec are set to NULL. This may prevent the page fault problem because the pointer of iio_chan_spec is initialized as NULL. The iio_chan_spec is updated only in case that