From 89267cb39e4f748d595ffdd8734a00701a6f9817 Mon Sep 17 00:00:00 2001 From: Grant Likely Date: Thu, 6 Dec 2012 23:28:36 +0000 Subject: [PATCH] --- yaml --- r: 343650 b: refs/heads/master c: 5323f49853ba5f37d9975fe6bd13546c2ec790c8 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/spi/spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3d5db02ace1c..e573fbeb4e9e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b15d5d7004e25716c8b8dfe4e322a64551e2e6cc +refs/heads/master: 5323f49853ba5f37d9975fe6bd13546c2ec790c8 diff --git a/trunk/drivers/spi/spi.c b/trunk/drivers/spi/spi.c index 22c71e238fdf..b370d292d19c 100644 --- a/trunk/drivers/spi/spi.c +++ b/trunk/drivers/spi/spi.c @@ -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 {