| Message ID | 20260528071909.547179-1-shaunakkdatar@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series |
|
| Related | show |
diff --git a/src/ipa/libipa/interpolator.h b/src/ipa/libipa/interpolator.h index cc4b27b5..01bd8140 100644 --- a/src/ipa/libipa/interpolator.h +++ b/src/ipa/libipa/interpolator.h @@ -46,6 +46,9 @@ public: data_.clear(); lastInterpolatedKey_.reset(); + if (yaml.isEmpty()) + return -ENOENT; + if (!yaml.isList()) { LOG(Interpolator, Error) << "yaml object must be a list"; return -EINVAL;
Interpolator::readYaml() currently logs an error when passed an empty YAML object because it expects the node to always be a list. Optional tuning parameters such as colourGains in the AWB Grey algorithm may be absent from the tuning files. rkisp1 uses tuning files without a colourGains section. Return -ENOENT for empty YAML nodes before validating the node to avoid ERROR logs while still reporting a warning to the caller. Fixes: #323 Signed-off-by: Shaunak Datar <shaunakkdatar@gmail.com> --- src/ipa/libipa/interpolator.h | 3 +++ 1 file changed, 3 insertions(+)