Fixed missing up().

This commit is contained in:
Florian Pose 2008-08-08 12:44:40 +00:00
parent 547d0123b0
commit 99f622f1e8
1 changed files with 1 additions and 0 deletions

View File

@ -561,6 +561,7 @@ int ec_cdev_ioctl_slave_state(
if (!(slave = ec_master_find_slave(
master, 0, data.slave_position))) {
up(&master->master_sem);
EC_ERR("Slave %u does not exist!\n", data.slave_position);
return -EINVAL;
}