Commit db6d8fc5 authored by Emilio G. Cota's avatar Emilio G. Cota Committed by Greg Kroah-Hartman

staging: vme: fix bogus clearing of the bus number in vme_free_bus_num

Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c0779fd0
...@@ -1326,7 +1326,7 @@ static int vme_alloc_bus_num(void) ...@@ -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);
} }
......
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