Re: [PATCH] bttv driver II

From: Gerd Knorr (kraxel@goldbach.in-berlin.de)
Date: Tue May 23 2000 - 15:21:10 EST


           
> - save_flags(flags);
> - cli();
> + spin_lock_irqsave(&btv->s_lock, flags);

> out_unlock:
> up(&btv->lock);
> + MOD_DEC_USE_COUNT;

> +++ linux-2.3.new/drivers/char/bttv.h Tue May 23 01:59:32 2000
> @@ -143,6 +143,8 @@
>
> int tuner_type;
> int channel;
> +
> + spinlock_t s_lock;

ahm, this looks wrong to my eyes too: using two different locking
mechanisms in parallel (the existing semaphore btv->lock vs. new
spinlock btv->s_lock).

  Gerd

-- 
Protecting the children is a good way to get a lot of adults who cant
stand up for themselves.		-- seen in some sig on /.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:24 EST