Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343650
b: refs/heads/master
c: 5323f49
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely committed Dec 6, 2012
1 parent 53a0da9 commit 89267cb
Show file tree
Hide file tree
Showing 2 changed files with 2 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: b15d5d7004e25716c8b8dfe4e322a64551e2e6cc
refs/heads/master: 5323f49853ba5f37d9975fe6bd13546c2ec790c8
2 changes: 1 addition & 1 deletion trunk/drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ 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(SPI_BUFSIZ, n_tx + n_rx), GFP_KERNEL);
local_buf = kmalloc(max((unsigned)SPI_BUFSIZ, n_tx + n_rx), GFP_KERNEL);
if (!local_buf)
return -ENOMEM;
} else {
Expand Down

0 comments on commit 89267cb

Please sign in to comment.