mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 00:08:50 +00:00
staging: vme: fix bogus clearing of the bus number in vme_free_bus_num
Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
c0779fd01d
commit
db6d8fc559
@ -1326,7 +1326,7 @@ static int vme_alloc_bus_num(void)
|
|||||||
static void vme_free_bus_num(int bus)
|
static void vme_free_bus_num(int bus)
|
||||||
{
|
{
|
||||||
mutex_lock(&vme_bus_num_mtx);
|
mutex_lock(&vme_bus_num_mtx);
|
||||||
vme_bus_numbers |= ~(0x1 << bus);
|
vme_bus_numbers &= ~(0x1 << bus);
|
||||||
mutex_unlock(&vme_bus_num_mtx);
|
mutex_unlock(&vme_bus_num_mtx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user