The commit
9eabff35831a ("pass: Add the support for new struct
pass_resource_nonstandard type") missed adding the 'break' when
putting the nonstandard resource. So, the error happen when
releasing the nonstandard resource.
This patch adds the missing 'break' to fix the bug.
Change-Id: I867c820411e34e42d3ebc4afd06f7f9c2071a5ec
Fixes: commit 9eabff35831a ("pass: Add the support for new struct pass_resource_nonstandard type")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
common = (struct pass_resource_common*)res->hal.nonstandard;
info = res->hal.nonstandard->common.info;
ret = info->close(res_name, common);
+ break;
default:
return -EINVAL;
};