diff options
Diffstat (limited to 'lib/dma-debug.c')
| -rw-r--r-- | lib/dma-debug.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dma-debug.c b/lib/dma-debug.c index fcb65d2a0b94..8855f019ebe8 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c | |||
| @@ -1249,6 +1249,14 @@ static void check_sync(struct device *dev, | |||
| 1249 | dir2name[entry->direction], | 1249 | dir2name[entry->direction], |
| 1250 | dir2name[ref->direction]); | 1250 | dir2name[ref->direction]); |
| 1251 | 1251 | ||
| 1252 | if (ref->sg_call_ents && ref->type == dma_debug_sg && | ||
| 1253 | ref->sg_call_ents != entry->sg_call_ents) { | ||
| 1254 | err_printk(ref->dev, entry, "DMA-API: device driver syncs " | ||
| 1255 | "DMA sg list with different entry count " | ||
| 1256 | "[map count=%d] [sync count=%d]\n", | ||
| 1257 | entry->sg_call_ents, ref->sg_call_ents); | ||
| 1258 | } | ||
| 1259 | |||
| 1252 | out: | 1260 | out: |
| 1253 | put_hash_bucket(bucket, &flags); | 1261 | put_hash_bucket(bucket, &flags); |
| 1254 | } | 1262 | } |
