[FIXUP v11] fixup! s390: vfio-ap: implement mediated device open callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Tony Krowiak <akrowiak@xxxxxxxxxxxxx>

Fixes case statement in vfio_ap_mdev_copy_masks() function in
vfio-ap-ops.c.
---
 drivers/s390/crypto/vfio_ap_ops.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/s390/crypto/vfio_ap_ops.c b/drivers/s390/crypto/vfio_ap_ops.c
index e1e1beaaeba5..86b42487a51c 100644
--- a/drivers/s390/crypto/vfio_ap_ops.c
+++ b/drivers/s390/crypto/vfio_ap_ops.c
@@ -741,11 +741,12 @@ static void vfio_ap_mdev_copy_masks(struct ap_matrix_mdev *matrix_mdev)
 		break;
 	case CRYCB_FORMAT1:
 	case CRYCB_FORMAT0:
-	default:
 		apm = (unsigned long *)crycb->apcb0.apm;
 		aqm = (unsigned long *)crycb->apcb0.aqm;
 		adm = (unsigned long *)crycb->apcb0.adm;
 		break;
+	default:
+		return;
 	}
 
 	nbytes = DIV_ROUND_UP(matrix_mdev->matrix.apm_max + 1, BITS_PER_BYTE);
-- 
2.19.0.221.g150f307




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux