Commit d933e5f4 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Alexander Gordeev
parent 5dd42419
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment