projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c458dda
)
s390/cio: Fix how vfio-ccw checks pinned pages
author
Eric Farman
<
[email protected]
>
Tue, 2 Oct 2018 01:02:35 +0000
(
03:02
+0200)
committer
Cornelia Huck
<
[email protected]
>
Tue, 2 Oct 2018 07:45:05 +0000
(09:45 +0200)
We have two nested loops to check the entries within the pfn_array_table
arrays. But we mistakenly use the outer array as an index in our check,
and completely ignore the indexing performed by the inner loop.
Cc:
[email protected]
Signed-off-by: Eric Farman <
[email protected]
>
Message-Id: <
20181002010235
[email protected]
>
Signed-off-by: Cornelia Huck <
[email protected]
>
drivers/s390/cio/vfio_ccw_cp.c
patch
|
blob
|
history
diff --git
a/drivers/s390/cio/vfio_ccw_cp.c
b/drivers/s390/cio/vfio_ccw_cp.c
index dbe7c7ac9ac8c8c4456f142b14c740d3bdc0c5e6..fd77e46eb3b21520f2bf155612aed0248e773884 100644
(file)
--- a/
drivers/s390/cio/vfio_ccw_cp.c
+++ b/
drivers/s390/cio/vfio_ccw_cp.c
@@
-163,7
+163,7
@@
static bool pfn_array_table_iova_pinned(struct pfn_array_table *pat,
for (i = 0; i < pat->pat_nr; i++, pa++)
for (j = 0; j < pa->pa_nr; j++)
- if (pa->pa_iova_pfn[
i
] == iova_pfn)
+ if (pa->pa_iova_pfn[
j
] == iova_pfn)
return true;
return false;