hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/s390/crypto/vfio_ap_drv.c
....@@ -82,8 +82,9 @@
8282
8383 static void vfio_ap_matrix_dev_release(struct device *dev)
8484 {
85
- struct ap_matrix_dev *matrix_dev = dev_get_drvdata(dev);
85
+ struct ap_matrix_dev *matrix_dev;
8686
87
+ matrix_dev = container_of(dev, struct ap_matrix_dev, device);
8788 kfree(matrix_dev);
8889 }
8990