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) ...@@ -171,8 +171,7 @@ static int vfio_ccw_sch_probe(struct subchannel *sch)
return -ENODEV; return -ENODEV;
} }
parent = kzalloc(sizeof(*parent) + sizeof(struct mdev_type *), parent = kzalloc(struct_size(parent, mdev_types, 1), GFP_KERNEL);
GFP_KERNEL);
if (!parent) if (!parent)
return -ENOMEM; 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