|
@@ -458,11 +458,6 @@ static int __v4l2_async_notifier_parse_fwnode_endpoints(
|
|
|
if (!is_available)
|
|
|
continue;
|
|
|
|
|
|
- if (WARN_ON(notifier->num_subdevs >= notifier->max_subdevs)) {
|
|
|
- ret = -EINVAL;
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
if (has_port) {
|
|
|
struct fwnode_endpoint ep;
|
|
|
|
|
@@ -474,6 +469,11 @@ static int __v4l2_async_notifier_parse_fwnode_endpoints(
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
+ if (WARN_ON(notifier->num_subdevs >= notifier->max_subdevs)) {
|
|
|
+ ret = -EINVAL;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
ret = v4l2_async_notifier_fwnode_parse_endpoint(
|
|
|
dev, notifier, fwnode, asd_struct_size, parse_endpoint);
|
|
|
if (ret < 0)
|