Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350779
b: refs/heads/master
c: 2cd94c8
h: refs/heads/master
i:
  350777: fe9cfce
  350775: 296046c
v: v3
  • Loading branch information
Mark Brown authored and Grant Likely committed Feb 5, 2013
1 parent b737707 commit f5ae225
Show file tree
Hide file tree
Showing 2 changed files with 3 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: c88dd349b5a83c9efa4030176a5184a9a1440475
refs/heads/master: 2cd94c8a1b4184b48ecbc16b353dcbb513053285
3 changes: 2 additions & 1 deletion trunk/drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,8 @@ int spi_write_then_read(struct spi_device *spi,
* using the pre-allocated buffer or the transfer is too large.
*/
if ((n_tx + n_rx) > SPI_BUFSIZ || !mutex_trylock(&lock)) {
local_buf = kmalloc(max((unsigned)SPI_BUFSIZ, n_tx + n_rx), GFP_KERNEL);
local_buf = kmalloc(max((unsigned)SPI_BUFSIZ, n_tx + n_rx),
GFP_KERNEL | GFP_DMA);
if (!local_buf)
return -ENOMEM;
} else {
Expand Down

0 comments on commit f5ae225

Please sign in to comment.