From: Emilio G. Cota Date: Fri, 12 Nov 2010 11:14:27 +0000 (+0000) Subject: staging: vme: fix bogus clearing of the bus number in vme_free_bus_num X-Git-Tag: v2.6.38-rc1~423^2~308 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=db6d8fc5596ef866e64e9a7eef96bacdc6e51e11;p=karo-tx-linux.git staging: vme: fix bogus clearing of the bus number in vme_free_bus_num Signed-off-by: Emilio G. Cota Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vme/vme.c b/drivers/staging/vme/vme.c index 47e9d5ccf784..d9fc8644376e 100644 --- a/drivers/staging/vme/vme.c +++ b/drivers/staging/vme/vme.c @@ -1326,7 +1326,7 @@ static int vme_alloc_bus_num(void) static void vme_free_bus_num(int bus) { mutex_lock(&vme_bus_num_mtx); - vme_bus_numbers |= ~(0x1 << bus); + vme_bus_numbers &= ~(0x1 << bus); mutex_unlock(&vme_bus_num_mtx); }