Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1317466 > unrolled thread

[PATCH 2/2] Staging: rts5208: Add missing dma_mapping_error

Started byShaun Ren <shaun.ren@linux.com>
First post2016-01-26 03:30 +0100
Last post2016-01-26 03:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] Staging: rts5208: Add missing dma_mapping_error Shaun Ren <shaun.ren@linux.com> - 2016-01-26 03:30 +0100

#1317466 — [PATCH 2/2] Staging: rts5208: Add missing dma_mapping_error

FromShaun Ren <shaun.ren@linux.com>
Date2016-01-26 03:30 +0100
Subject[PATCH 2/2] Staging: rts5208: Add missing dma_mapping_error
Message-ID<qV1yi-4Nn-3@gated-at.bofh.it>
Signed-off-by: Shaun Ren <shaun.ren@linux.com>
---
 drivers/staging/rts5208/rtsx_transport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rts5208/rtsx_transport.c b/drivers/staging/rts5208/rtsx_transport.c
index eff9a4b621..43787df 100644
--- a/drivers/staging/rts5208/rtsx_transport.c
+++ b/drivers/staging/rts5208/rtsx_transport.c
@@ -663,7 +663,7 @@ static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf,
 		return -ENXIO;
 
 	addr = dma_map_single(&rtsx->pci->dev, buf, len, dma_dir);
-	if (!addr)
+	if (dma_mapping_error(&rtsx->pci->dev, addr))
 		return -ENOMEM;
 
 	if (card == SD_CARD)
-- 
2.7.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web