.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * The Virtio 9p transport driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
8 | 9 | * |
---|
9 | 10 | * Based on virtio console driver |
---|
10 | 11 | * Copyright (C) 2006, 2007 Rusty Russell, IBM Corporation |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or modify |
---|
13 | | - * it under the terms of the GNU General Public License version 2 |
---|
14 | | - * as published by the Free Software Foundation. |
---|
15 | | - * |
---|
16 | | - * This program is distributed in the hope that it will be useful, |
---|
17 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
19 | | - * GNU General Public License for more details. |
---|
20 | | - * |
---|
21 | | - * You should have received a copy of the GNU General Public License |
---|
22 | | - * along with this program; if not, write to: |
---|
23 | | - * Free Software Foundation |
---|
24 | | - * 51 Franklin Street, Fifth Floor |
---|
25 | | - * Boston, MA 02111-1301 USA |
---|
26 | | - * |
---|
27 | 12 | */ |
---|
28 | 13 | |
---|
29 | 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
329 | 314 | if (!iov_iter_count(data)) |
---|
330 | 315 | return 0; |
---|
331 | 316 | |
---|
332 | | - if (!(data->type & ITER_KVEC)) { |
---|
| 317 | + if (!iov_iter_is_kvec(data)) { |
---|
333 | 318 | int n; |
---|
334 | 319 | /* |
---|
335 | 320 | * We allow only p9_max_pages pinned. We wait for the |
---|
.. | .. |
---|
409 | 394 | struct page **in_pages = NULL, **out_pages = NULL; |
---|
410 | 395 | struct virtio_chan *chan = client->trans; |
---|
411 | 396 | struct scatterlist *sgs[4]; |
---|
412 | | - size_t offs; |
---|
| 397 | + size_t offs = 0; |
---|
413 | 398 | int need_drop = 0; |
---|
414 | 399 | int kicked = 0; |
---|
415 | 400 | |
---|