summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>2017-04-12 11:08:16 +0200
committerCornelia Huck <cornelia.huck@de.ibm.com>2017-04-12 12:34:17 +0200
commit129cc19a94513081e9250323cd57e12ed48b3613 (patch)
treedaccaeb012b298ebeec12ba54ea53cc0254e9ce1 /security
parentc9c31b07bab5fee3ef0bf163afc11b1100eb10d4 (diff)
downloadop-kernel-dev-129cc19a94513081e9250323cd57e12ed48b3613.zip
op-kernel-dev-129cc19a94513081e9250323cd57e12ed48b3613.tar.gz
vfio: ccw: improve error handling for vfio_ccw_mdev_remove
When vfio_ccw_mdev_reset fails during the remove process of the mdev, the current implementation simply returns. The failure indicates that the subchannel device is in a NOT_OPER state, thus the right thing to do should be removing the mdev. While we are at here, reverse the condition check to make the code more concise and readable. Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> Message-Id: <20170412090816.79108-3-bjsdjshi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud