rc: unlock on error in store_protocols()
Subsystems (3)
PATCH 2/2 rc: unlock on error in store_protocols()
This error path is missing the unlock.
Signed-off-by Dan Carpenter <[email protected]>
drivers/media/rc/rc-main.c +2 -1
@@ -890,7 +892,8 @@ static ssize_t store_protocols(struct device *device,if (i =ARRAY_SIZE (proto_names)) {IR_dprintk (1 ,"Unknown protocol: '%s'\n" , tmp); -return -EINVAL ; + ret = -EINVAL ; + goto out; } count++;