Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220137
b: refs/heads/master
c: e1517c0
h: refs/heads/master
i:
  220135: e7ff628
v: v3
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed Oct 6, 2010
1 parent c1afba4 commit 841bb14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 858f1ccff123469fb4257e2529ef8783aabf3b62
refs/heads/master: e1517c00da6d35911b6451f886d55e22d56393ad
3 changes: 1 addition & 2 deletions trunk/drivers/staging/iio/adc/max1363_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ int max1363_single_channel_from_ring(long mask, struct max1363_state *st)
ret = -EBUSY;
goto error_ret;
}
numvals = hweight_long(st->current_mode->modemask);

ring_data = kmalloc(numvals*2, GFP_KERNEL);
ring_data = kmalloc(ring->access.get_bytes_per_datum(ring), GFP_KERNEL);
if (ring_data == NULL) {
ret = -ENOMEM;
goto error_ret;
Expand Down

0 comments on commit 841bb14

Please sign in to comment.