Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325489
b: refs/heads/master
c: 801c4b5
h: refs/heads/master
i:
  325487: 4f49860
v: v3
  • Loading branch information
Kim, Milo authored and Jonathan Cameron committed Sep 22, 2012
1 parent dc2be5e commit 4fef164
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 369d0e20138c774e4c0c07ca1572e412207bc3fc
refs/heads/master: 801c4b5ca373c4cfe78912616d68e1f7fd84110c
5 changes: 4 additions & 1 deletion trunk/drivers/iio/inkern.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ struct iio_channel *iio_channel_get(const char *name, const char *channel_name)

channel = kzalloc(sizeof(*channel), GFP_KERNEL);
if (channel == NULL)
return ERR_PTR(-ENOMEM);
goto error_no_mem;

channel->indio_dev = c->indio_dev;

Expand All @@ -151,6 +151,9 @@ struct iio_channel *iio_channel_get(const char *name, const char *channel_name)
iio_device_put(c->indio_dev);
kfree(channel);
return ERR_PTR(-EINVAL);
error_no_mem:
iio_device_put(c->indio_dev);
return ERR_PTR(-ENOMEM);
}
EXPORT_SYMBOL_GPL(iio_channel_get);

Expand Down

0 comments on commit 4fef164

Please sign in to comment.