diff options
author | Martin Schwidefsky | 2017-08-31 14:05:20 +0200 |
---|---|---|
committer | Martin Schwidefsky | 2017-08-31 14:05:20 +0200 |
commit | 0fdd49ad1bb17457d119f8c3bc8ecdd0734eed9c (patch) | |
tree | c98e6ff205d5efd4d8b0383d78586bd9b5e1e09c /drivers | |
parent | 8ab867cb0806a8e195de161fd8883a0578d1d050 (diff) | |
parent | c389377c01bf2d6e2a178e86aef8535931bfbd75 (diff) |
Merge tag 'vfio-ccw-20170724' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw into fixes
Pull vfio-ccw fix from Cornelia Huck:
"A bugfix in the ccw translation code."
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/s390/cio/vfio_ccw_cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/vfio_ccw_cp.c b/drivers/s390/cio/vfio_ccw_cp.c index ba6ac83a6c25..5ccfdc80d0ec 100644 --- a/drivers/s390/cio/vfio_ccw_cp.c +++ b/drivers/s390/cio/vfio_ccw_cp.c @@ -481,7 +481,7 @@ static int ccwchain_fetch_tic(struct ccwchain *chain, ccw_tail = ccw_head + (iter->ch_len - 1) * sizeof(struct ccw1); if ((ccw_head <= ccw->cda) && (ccw->cda <= ccw_tail)) { - ccw->cda = (__u32) (addr_t) (iter->ch_ccw + + ccw->cda = (__u32) (addr_t) (((char *)iter->ch_ccw) + (ccw->cda - ccw_head)); return 0; } |