release_local_port: properly compute the bitmap position
Current calculation is always off, not reflecting the right position in the bitmap, which results in failures due to conflicts (detected at the kernel level) when trying to open a new handle. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
This commit is contained in:
parent
8ee16e6688
commit
ef8ba32e0c
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ static void release_local_port(uint32_t port)
|
|||
return;
|
||||
|
||||
nr = port >> 22;
|
||||
used_ports_map[nr / 32] &= ~((nr % 32) + 1);
|
||||
used_ports_map[nr / 32] &= ~(1 << nr % 32);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue