+ /* Are there more probes than the target unit size supports? */
+ if (num_enabled_probes > out_unitsize * 8) {
+ sr_err("filter: %s: too many probes (%d) for the target unit "
+ "size (%d)", num_enabled_probes, out_unitsize, __func__);
+ return SR_ERR_ARG;
+ }
+
+ if (!(*data_out = g_try_malloc(length_in))) {
+ sr_err("filter: %s: data_out malloc failed", __func__);
+ return SR_ERR_MALLOC;
+ }
+