Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376756
b: refs/heads/master
c: 702df9f
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron committed Jun 4, 2013
1 parent ee19f35 commit b88126f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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: 60bba385c5e86ee6a654e3345093eb48e258eb1d
refs/heads/master: 702df9f1819c7fc7e257251fabc5eec674342c32
5 changes: 4 additions & 1 deletion trunk/drivers/iio/buffer_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct iio_cb_buffer *iio_channel_get_all_cb(struct device *dev,
while (chan->indio_dev) {
if (chan->indio_dev != indio_dev) {
ret = -EINVAL;
goto error_release_channels;
goto error_free_scan_mask;
}
set_bit(chan->channel->scan_index,
cb_buff->buffer.scan_mask);
Expand All @@ -73,6 +73,8 @@ struct iio_cb_buffer *iio_channel_get_all_cb(struct device *dev,

return cb_buff;

error_free_scan_mask:
kfree(cb_buff->buffer.scan_mask);
error_release_channels:
iio_channel_release_all(cb_buff->channels);
error_free_cb_buff:
Expand Down Expand Up @@ -100,6 +102,7 @@ EXPORT_SYMBOL_GPL(iio_channel_stop_all_cb);

void iio_channel_release_all_cb(struct iio_cb_buffer *cb_buff)
{
kfree(cb_buff->buffer.scan_mask);
iio_channel_release_all(cb_buff->channels);
kfree(cb_buff);
}
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/staging/android/alarm-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ static long alarm_compat_ioctl(struct file *file, unsigned int cmd,
}

rv = alarm_do_ioctl(file, cmd, &ts);
if (rv)
return rv;

switch (ANDROID_ALARM_BASE_CMD(cmd)) {
case ANDROID_ALARM_GET_TIME(0): /* NOTE: we modified cmd above */
Expand All @@ -307,7 +305,7 @@ static long alarm_compat_ioctl(struct file *file, unsigned int cmd,
break;
}

return 0;
return rv;
}
#endif

Expand Down

0 comments on commit b88126f

Please sign in to comment.