]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: Fix how vfio-ccw checks pinned pages
authorEric Farman <farman@linux.ibm.com>
Tue, 2 Oct 2018 01:02:35 +0000 (03:02 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 2 Oct 2018 07:45:05 +0000 (09:45 +0200)
commitf185ddf9a2084e743f8cf5798aed12c2512ba9c9
treed97a9a95586997fbcc93ed40314686d1b6e1ce97
parent9322e26b0b41a5768c1010f3581e4e0001665526
s390/cio: Fix how vfio-ccw checks pinned pages

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: stable@vger.kernel.org
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20181002010235.42483-1-farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_cp.c