Commit afe5624b authored by Dan Carpenter's avatar Dan Carpenter Committed by 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: default avatarSasha Levin <sasha.levin@oracle.com>
Acked-by: default avatarDavid Härdeman <david@hardeman.nu>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment