pass: hal: Fix the bug when putting the nonstandard resource 44/144844/1
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 18 Aug 2017 05:08:13 +0000 (14:08 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 18 Aug 2017 06:31:23 +0000 (15:31 +0900)
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>
src/pass/pass-hal.c

index 89dfb97596f9c3c41606bdc3b8e9a88291a8757a..d7aa6c2df07e6e7e592bd69f43e101fa08041411 100644 (file)
@@ -867,6 +867,7 @@ int pass_put_resource(struct pass_resource *res)
                common = (struct pass_resource_common*)res->hal.nonstandard;
                info = res->hal.nonstandard->common.info;
                ret = info->close(res_name, common);
+               break;
        default:
                return -EINVAL;
        };