提交 afe5624b 编写于 作者: D Dan Carpenter 提交者: Mauro Carvalho Chehab

[media] rc: unlock on error in store_protocols()

This error path is missing the unlock.

[mchehab@redhat.com: Merged two equal patches into one]
Signed-off-by: NSasha Levin <sasha.levin@oracle.com>
Acked-by: NDavid Härdeman <david@hardeman.nu>
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 a44dca17
...@@ -892,7 +892,8 @@ static ssize_t store_protocols(struct device *device, ...@@ -892,7 +892,8 @@ static ssize_t store_protocols(struct device *device,
if (i == ARRAY_SIZE(proto_names)) { if (i == ARRAY_SIZE(proto_names)) {
IR_dprintk(1, "Unknown protocol: '%s'\n", tmp); IR_dprintk(1, "Unknown protocol: '%s'\n", tmp);
return -EINVAL; ret = -EINVAL;
goto out;
} }
count++; count++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册