USB: Change the scatterlist type in struct urb
[firefly-linux-kernel-4.4.55.git] / drivers / usb / mon / mon_bin.c
index 8a7968df278f95bb769853dc02b08a38d016205e..e7fa3644ba6a74ade9300d4cc5384e08bbfb30e2 100644 (file)
@@ -422,7 +422,7 @@ static unsigned int mon_bin_get_data(const struct mon_reader_bin *rp,
                }
 
                /* Copy up to the first non-addressable segment */
-               for_each_sg(urb->sg->sg, sg, urb->num_sgs, i) {
+               for_each_sg(urb->sg, sg, urb->num_sgs, i) {
                        if (length == 0 || PageHighMem(sg_page(sg)))
                                break;
                        this_len = min_t(unsigned int, sg->length, length);