Re: [PATCH] drivers: iio: industrialio-core: add check when kzalloc fails

2019-01-27 Thread valdis . kletnieks
On Thu, 24 Jan 2019 19:58:00 +0530, Bharath Vedartham said: > add code to handle the case when kzalloc fails to allocate memory to dev > > Signed-off-by: Bharath Vedartham > dev_set_name(&dev->dev, "iio:device%d", dev->id); > INIT_LIST_HEAD(&dev->buffer_list); > +

Re: [PATCH] drivers: iio: industrialio-core: add check when kzalloc fails

2019-01-25 Thread Bharath Vedartham
On Fri, Jan 25, 2019 at 04:23:13PM +0530, Himanshu Jha wrote: > On Fri, Jan 25, 2019 at 08:55:27AM +0200, Alexandru Ardelean wrote: > > On Thu, Jan 24, 2019 at 4:28 PM Bharath Vedartham > > wrote: > > > > > > add code to handle the case when kzalloc fails to allocate memory to dev > > > > > > Sig

Re: [PATCH] drivers: iio: industrialio-core: add check when kzalloc fails

2019-01-25 Thread Himanshu Jha
On Fri, Jan 25, 2019 at 08:55:27AM +0200, Alexandru Ardelean wrote: > On Thu, Jan 24, 2019 at 4:28 PM Bharath Vedartham > wrote: > > > > add code to handle the case when kzalloc fails to allocate memory to dev > > > > Signed-off-by: Bharath Vedartham > > --- > > drivers/iio/industrialio-core.c

Re: [PATCH] drivers: iio: industrialio-core: add check when kzalloc fails

2019-01-24 Thread Alexandru Ardelean
On Thu, Jan 24, 2019 at 4:28 PM Bharath Vedartham wrote: > > add code to handle the case when kzalloc fails to allocate memory to dev > > Signed-off-by: Bharath Vedartham > --- > drivers/iio/industrialio-core.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/iio/industrialio-c

[PATCH] drivers: iio: industrialio-core: add check when kzalloc fails

2019-01-24 Thread Bharath Vedartham
add code to handle the case when kzalloc fails to allocate memory to dev Signed-off-by: Bharath Vedartham --- drivers/iio/industrialio-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index 4f5cd9f..93caa6b 100644 ---