X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=net%2F9p%2Ftrans_virtio.c;h=b1d39cabf125a7f90b7029f4355a0a7025af526d;hp=91981970f542d41d92b98163a68a92548adeba6c;hb=ed61a132cbbf7cadae7b255cd5083c8fadc77f31;hpb=af102b333a21cc77c1834cf7a604d0359db9d54b;ds=sidebyside diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 91981970f542..b1d39cabf125 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -329,7 +329,7 @@ static int p9_get_mapped_pages(struct virtio_chan *chan, if (!iov_iter_count(data)) return 0; - if (iov_iter_is_kvec(data)) { + if (!iov_iter_is_kvec(data)) { int n; /* * We allow only p9_max_pages pinned. We wait for the