Skip to content

Commit

Permalink
staging: vme: fix bogus clearing of the bus number in vme_free_bus_num
Browse files Browse the repository at this point in the history
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Emilio G. Cota authored and Greg Kroah-Hartman committed Nov 16, 2010
1 parent c0779fd commit db6d8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/vme/vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit db6d8fc

Please sign in to comment.