X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fusb%2Fmon%2Fmon_text.c;fp=drivers%2Fusb%2Fmon%2Fmon_text.c;h=d56260280f54e38724a086643158d9dceb715b4f;hb=ff9c895f07d36193c75533bda8193bde8ca99d02;hp=4d0be130f49b5282af7b70654b94ead4e0cf2e9b;hpb=0ff8d1b3c858ea7c8daa54f7577971a76d04d283;p=firefly-linux-kernel-4.4.55.git 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, } else { struct scatterlist *sg = urb->sg->sg; - /* If IOMMU coalescing occurred, we cannot trust sg_page */ - if (urb->sg->nents != urb->num_sgs || - PageHighMem(sg_page(sg))) + if (PageHighMem(sg_page(sg))) return 'D'; /* For the text interface we copy only the first sg buffer */