]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:18:18 +0000 (09:18 +0200)
commitd8e15b143e4d34e60e4cb91b4ed49453e236e6d8
tree7bf282b8e9d40bab1d72ca21a2e656491c655855
parentb51943f088e5126d26306d9669fb404f0948ddb3
s390/cio: Fix how vfio-ccw checks pinned pages

commit 24abf2901b18bf941b9f21ea2ce5791f61097ae4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/cio/vfio_ccw_cp.c