Staging: iio: test for failed allocation
authorDan Carpenter <error27@gmail.com>
Tue, 16 Mar 2010 10:03:49 +0000 (13:03 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:30:08 +0000 (09:30 -0700)
commitef6d4f54cca5962127b47ee8a355611aafedd526
treea1a151ec24222c49b6c010ebce7fb8d570529e0c
parent0b64c38b71d6e2c1049c75bb1d885031008700c1
Staging: iio: test for failed allocation

We should return test to see if iio_allocate_trigger() fails and return -ENOMEM.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/lis3l02dq_ring.c