diff options
Diffstat (limited to 'drivers/usb/mon/mon_text.c')
-rw-r--r-- | drivers/usb/mon/mon_text.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c index 4d0be130f49b..d56260280f54 100644 --- a/drivers/usb/mon/mon_text.c +++ b/drivers/usb/mon/mon_text.c | |||
@@ -161,9 +161,7 @@ static inline char mon_text_get_data(struct mon_event_text *ep, struct urb *urb, | |||
161 | } else { | 161 | } else { |
162 | struct scatterlist *sg = urb->sg->sg; | 162 | struct scatterlist *sg = urb->sg->sg; |
163 | 163 | ||
164 | /* If IOMMU coalescing occurred, we cannot trust sg_page */ | 164 | if (PageHighMem(sg_page(sg))) |
165 | if (urb->sg->nents != urb->num_sgs || | ||
166 | PageHighMem(sg_page(sg))) | ||
167 | return 'D'; | 165 | return 'D'; |
168 | 166 | ||
169 | /* For the text interface we copy only the first sg buffer */ | 167 | /* For the text interface we copy only the first sg buffer */ |