Commit f957611c authored by Adam Wujek's avatar Adam Wujek 💬

userspace/wrsw_rtud: add mutex unlock on error case

In case there are all buckets full, rtu_fd_create_entry function returns error,
but also should unload mutex.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 70ce8871
......@@ -255,6 +255,7 @@ int rtu_fd_create_entry(uint8_t mac[ETH_ALEN], uint16_t vid, uint32_t port_mask,
pr_error(
"Hash %03x has no buckets left.\n",
eaddr.hash);
pthread_mutex_unlock(&fd_mutex);
return -ENOMEM;
}
......
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