diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-11-10 18:54:11 +0100 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-11-10 18:54:11 +0100 |
commit | 22841cea1a10832d07f16720c718f6795f35fe2a (patch) | |
tree | 325560155dc62c45029bec11898a236150241794 /drivers/s390 | |
parent | baaf9be8d05c63c5cca9729ff05e69c6afed4fc5 (diff) | |
parent | 408358b50deaf59b07c82a7bff8c7e7cce031fae (diff) | |
download | linux-22841cea1a10832d07f16720c718f6795f35fe2a.tar.bz2 |
Merge tag 'vfio-ccw-20171109' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw into features
Pull vfio-ccw update from Cornelia Huck:
"A vfio-ccw bugfix: avoid freeing that which should not be freed."
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/vfio_ccw_cp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/cio/vfio_ccw_cp.c b/drivers/s390/cio/vfio_ccw_cp.c index d8f98ad9b029..7ebbd8b482f5 100644 --- a/drivers/s390/cio/vfio_ccw_cp.c +++ b/drivers/s390/cio/vfio_ccw_cp.c @@ -332,6 +332,8 @@ static void ccwchain_cda_free(struct ccwchain *chain, int idx) { struct ccw1 *ccw = chain->ch_ccw + idx; + if (ccw_is_test(ccw) || ccw_is_noop(ccw) || ccw_is_tic(ccw)) + return; if (!ccw->count) return; |