UPSTREAM: USB: qmi_wwan: Make forced int 4 whitelist generic
[cascardo/linux.git] / drivers / net / usb / cdc-phonet.c
index 3886b30..3e41b00 100644 (file)
@@ -165,13 +165,13 @@ static void rx_complete(struct urb *req)
                                memcpy(skb_put(skb, 1), page_address(page), 1);
                                skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags,
                                                page, 1, req->actual_length,
-                                               req->actual_length);
+                                               PAGE_SIZE);
                                page = NULL;
                        }
                } else {
                        skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags,
                                        page, 0, req->actual_length,
-                                       req->actual_length);
+                                       PAGE_SIZE);
                        page = NULL;
                }
                if (req->actual_length < PAGE_SIZE)