Commit d933e5f4 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Alexander Gordeev
Browse files
parent 5dd42419
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -171,8 +171,7 @@ static int vfio_ccw_sch_probe(struct subchannel *sch)
		return -ENODEV;
	}

	parent = kzalloc(sizeof(*parent) + sizeof(struct mdev_type *),
			 GFP_KERNEL);
	parent = kzalloc(struct_size(parent, mdev_types, 1), GFP_KERNEL);
	if (!parent)
		return -ENOMEM;